Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize GitHub repos to lowercase #2199

Merged
merged 4 commits into from
May 10, 2024

Conversation

andrewpollock
Copy link
Contributor

@andrewpollock andrewpollock commented May 10, 2024

Problem: #2182 made checks for existing commits case-insensitive by repo, but left the underlying repo string alone. There are a lot of mixed-case GitHub repos in existence, because cves.extractGitCommit() takes the repo verbatim.

vulns.AddPkgInfo() aggregates events by repo, case insensitively, so was producing incorrect GIT events.

GitHub repo names are known to be case insensitive, so this is safe for them. It's definitively less safe for other URLs, so limit to just them for now.

andrewpollock and others added 2 commits May 10, 2024 03:44
Problem: google#2182 made checks for existing commits case-insensitive by
repo, but left the underlying repo string alone. There are a lot of
mixed-case GitHub repos in existence, because cves.extractGitCommit()
takes the repo verbatim.

vulns.AddPkgInfo() aggregates events by repo, case insensitively, so was
producing incorrect GIT events.

GitHub repo names are known to be case insensitive, so this is safe for
them. It's definitively less safe for other URLs, so limit to just them
for now.
@andrewpollock andrewpollock enabled auto-merge (squash) May 10, 2024 04:17
@andrewpollock andrewpollock merged commit f67f746 into google:master May 10, 2024
11 checks passed
@andrewpollock andrewpollock deleted the always_include_introduced branch May 23, 2024 04:42
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.

None yet

2 participants