Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6441 +/- ##
==========================================
+ Coverage 55.83% 55.86% +0.03%
==========================================
Files 223 223
Lines 22984 22999 +15
==========================================
+ Hits 12833 12849 +16
+ Misses 10148 10147 -1
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
another-rex
reviewed
Nov 25, 2026
another-rex
left a comment
Contributor
There was a problem hiding this comment.
LGTM, AI found some extra test cases to add
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Normalizes malformed and SCP-style Git reference URLs (such as
git://git@gitlab.com:gitlab-org/gitlab.git) to validhttps://URIs and drops non-URI reference strings invulns.ClassifyReferences.This resolves ~417
SCH:001(references.0.url: Does not match format 'uri')cve-osvlinter findings caused by GitLab CVE5affected[].repoentries being copied verbatim into OSVreferences.Details
vulns.NormalizeReferenceURLinvulnfeeds/vulns/vulns.goto:git://,ssh://,git+ssh://withgit@<host>:<non-port-path>) and bare SCP-style Git URLs (git@<host>:<path>) tohttps://<host>/<path>, while preserving validssh://git@host:<port>/...andgit://host/...URIs.uriformat requirements (url.Parse, non-empty scheme, no backslashes) and skip invalid URIs.vulns.ClassifyReferences(used by bothcve5andnvdconverters) to classify and deduplicate references using normalized URLs without alteringReposFromReferencesCVEListrepo derivation orcombine-to-osvrepo matching.Testing
vulnfeeds/vulns/vulns_test.go(TestNormalizeReferenceURLand cases inTestClassifyReferences) covering valid URIs, malformed/bare SCP Git URLs, numeric ports vs. digit-prefixed org names, whitespace, and invalid URIs.vulnfeeds/conversion/cve5/converter_test.go(TestFromCVE5_NormalizesMalformedGitRepoRef) against the realCVE-2025-1110GitLab CVE5 fixture.go test ./...andgolangci-lint@v2.14.0 run ./...invulnfeeds/— all tests pass with 0 lint issues.