Skip to content

feat: Handle Chainguard OSV used for the grypedb build.#3255

Draft
vaikas wants to merge 2 commits intoanchore:mainfrom
vaikas:chainguard-osv-transformer
Draft

feat: Handle Chainguard OSV used for the grypedb build.#3255
vaikas wants to merge 2 commits intoanchore:mainfrom
vaikas:chainguard-osv-transformer

Conversation

@vaikas
Copy link
Copy Markdown

@vaikas vaikas commented Feb 28, 2026

As part of moving to OSV for Chainguard feed, this adds the transformer for it. There is another PR that I'll link in vunnel for it shortly and x-link them.

I think we need this: anchore/vunnel#1082 to land first

if isAdvisory {
aliases = append(aliases, vulnerability.Related...)
} else if strings.HasPrefix(vulnerability.ID, "CGA-") {
// Chainguard CGA records put CVE/GHSA IDs in "related" rather than "aliases"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what we do today (related), I'd like to make sure this is correct.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want records in Grype DB that mean, for example, https://osv.dev/vulnerability/CGA-46f4-r7mm-232v fixes CVE-2026-31988 and GHSA-gmq8-994r-jv83?

That's what the "isAdvisory" is checking for, because that's the semantics AlmaLinux advisories have, see for example https://osv.dev/vulnerability/ALSA-2026:4443 claims to fix 2 CVEs.

Generally for transformer changes we want to work backwards from the matching semantics we're trying to make Grype do.

Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
…ore correct as per the spec.

feat: Parse the arch qualifier from the PURL.

Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
@vaikas vaikas force-pushed the chainguard-osv-transformer branch from aa93bbd to 1c8c1f9 Compare March 17, 2026 21:36
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