Skip to content

sbom: make internal SPDX relationships reproducible - #2439

Merged
xnox merged 1 commit into
chainguard-dev:mainfrom
kevinmdavis:fix-spdx-internal-sbom-order
Aug 27, 2026
Merged

sbom: make internal SPDX relationships reproducible#2439
xnox merged 1 commit into
chainguard-dev:mainfrom
kevinmdavis:fix-spdx-internal-sbom-order

Conversation

@kevinmdavis

Copy link
Copy Markdown
Member

Sort the top-level elements copied from internal APK SBOMs before adding their relationships to the image SBOM. This prevents equivalent builds from producing different predicates due to Go map iteration order.

Sort the top-level elements copied from internal APK SBOMs before adding their relationships to the image SBOM. This prevents equivalent builds from producing different predicates due to Go map iteration order.
@kevinmdavis
kevinmdavis requested review from markusthoemmes and wlynch and removed request for wlynch August 27, 2026 22:30

@xnox xnox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note, syft enumeration of components is often unstable. When this happens we report bugs to them, but yes overall we too should use stable sort even when syft isn't.

@xnox
xnox merged commit 055231b into chainguard-dev:main Aug 27, 2026
23 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.

3 participants