Skip to content

sbomnix: prefer nixpkgs CPE metadata#297

Merged
henrirosten merged 1 commit into
mainfrom
cpe-meta-coverage
Jun 2, 2026
Merged

sbomnix: prefer nixpkgs CPE metadata#297
henrirosten merged 1 commit into
mainfrom
cpe-meta-coverage

Conversation

@henrirosten

Copy link
Copy Markdown
Collaborator

Read exact CPE identifiers from nixpkgs metadata, prefer them over heuristic CPEs, and keep the heuristic path only as a fallback when nixpkgs metadata does not provide a canonical CPE.

Make --exclude-cpe-matching disable only heuristic CPE generation, while --exclude-meta disables nixpkgs metadata enrichment, including metadata-derived CPEs. Keep possibleCPEs informational-only and document the resulting CLI semantics.

Also fix the heuristic generator so include_cpe=False truly suppresses generated CPE values.

Read exact CPE identifiers from nixpkgs metadata, prefer them over
heuristic CPEs, and keep the heuristic path only as a fallback
when nixpkgs metadata does not provide a canonical CPE.

Make --exclude-cpe-matching disable only heuristic CPE generation,
while --exclude-meta disables nixpkgs metadata enrichment,
including metadata-derived CPEs. Keep possibleCPEs
informational-only and document the resulting CLI semantics.

Also fix the heuristic generator so include_cpe=False truly
suppresses generated CPE values.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
@henrirosten henrirosten marked this pull request as ready for review June 1, 2026 09:59
@henrirosten henrirosten requested a review from a team June 1, 2026 09:59
@henrirosten henrirosten merged commit ee8f003 into main Jun 2, 2026
6 checks passed
@henrirosten henrirosten deleted the cpe-meta-coverage branch June 3, 2026 06:18
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.

1 participant