Skip to content

fix(vulnfeeds): group affected versions by package and ecosystem - #5721

Open
jess-lowe wants to merge 4 commits into
google:masterfrom
jess-lowe:fix/alpine-dup
Open

fix(vulnfeeds): group affected versions by package and ecosystem#5721
jess-lowe wants to merge 4 commits into
google:masterfrom
jess-lowe:fix/alpine-dup

Conversation

@jess-lowe

@jess-lowe jess-lowe commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

fix #3385 Alpine CVE converter creating duplicate entries

Groups affected version and commit information by package and ecosystem, preventing duplicate affected entries in OSV exports.

Details

  • Modified AddPkgInfo to look for existing Affected entries matching the package name and ecosystem before creating a new one.
  • Merges events into a single Range object per type (ECOSYSTEM, GIT) within that entry, rather than creating multiple ranges of the same type.
  • Resolves duplicate entries and inconsistent exports seen in the Alpine converter (and potentially others).
  • Added unit tests (TestAddPkgInfo_MergeAffected) to verify merging logic.

@jess-lowe
jess-lowe requested review from a team, Ly-Joey and another-rex August 5, 2026 04:52
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.

Alpine CVE converter creating duplicate entries

1 participant