Skip to content

fix(sources): validate GitHub repository hosts - #94

Merged
harlan-zw merged 1 commit into
mainfrom
fix/github-url-host-validation
Aug 14, 2026
Merged

fix(sources): validate GitHub repository hosts#94
harlan-zw merged 1 commit into
mainfrom
fix/github-url-host-validation

Conversation

@oritwoen

Copy link
Copy Markdown
Collaborator

parseGitHubUrl() treated any string containing github.com/... as a GitHub repository, including lookalike hosts and embedded paths. That parser feeds package metadata into GitHub enrichment, so substring matching there was too loose. It now parses the URL and accepts only the actual GitHub hosts.

@oritwoen oritwoen self-assigned this Aug 14, 2026
@oritwoen
oritwoen requested a review from harlan-zw August 14, 2026 11:58
@harlan-github-agent

harlan-github-agent Bot commented Aug 14, 2026

Copy link
Copy Markdown

🤖 READY · 100/100

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Human merge decision still required.

▓▓▓▓▓ 100%

@harlan-zw harlan-zw added the harlan-agent-review Approve automated work for the current issue state or pull request head commit. label Aug 14, 2026
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-review Approve automated work for the current issue state or pull request head commit. label Aug 14, 2026
@harlan-zw
harlan-zw merged commit cea67e6 into main Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants