Skip to content

fix: include versionsuffix in CycloneDX SBOM component references - #67

Merged
HaoZeke merged 1 commit into
mainfrom
fix/sbom-versionsuffix-bom-ref
Nov 20, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
fix/sbom-versionsuffix-bom-ref

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

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.

`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.
@HaoZeke
HaoZeke merged commit eac7ef0 into main Nov 20, 2026
22 checks passed
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