Repository navigation
fix: include versionsuffix in CycloneDX SBOM component references - #67
Merged
Merged
Conversation
`bom_ref` in `src/sbom.rs` omitted `versionsuffix` when formatting component identifiers, even though `lock_identity` keys locked builds with that field included. When a stack lock holds two builds of the same package release that differ only by `versionsuffix`, both components receive the same `bom-ref` and `purl`, causing `dependencies` and formulation `taskDependencies` to emit duplicate entries that fail CycloneDX 1.5 schema validation. Append a percent-encoded `versionsuffix` qualifier in `bom_ref` when a package carries a non-empty suffix while preserving the existing format when no suffix is set. Update the CycloneDX reference documentation and the build-list test helper to reflect the qualifier.
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.
bom_refinsrc/sbom.rsomittedversionsuffixwhen formattingcomponent identifiers, even though
lock_identitykeys locked buildswith that field included. When a stack lock holds two builds of the
same package release that differ only by
versionsuffix, bothcomponents receive the same
bom-refandpurl, causingdependenciesand formulation
taskDependenciesto emit duplicate entries that failCycloneDX 1.5 schema validation.
Append a percent-encoded
versionsuffixqualifier inbom_refwhen apackage carries a non-empty suffix while preserving the existing format
when no suffix is set. Update the CycloneDX reference documentation and
the build-list test helper to reflect the qualifier.