Use SHA256 digest versioning for docker/chainguard SBOMs#13
Merged
Conversation
Docker image tags are mutable — the same tag (e.g. alpine:3.23.3) gets rebuilt with different content. Using the tag as COMPONENT_VERSION caused false dedup (old tag found → new SBOM never uploaded) and no traceability to actual image content. Now docker and chainguard sources persist the image digest to image-digest.txt and use it as the SBOM version. Dedup checks the sbomify API for existing artifacts with that digest, and after upload, stale artifacts for the same component are cleaned up. github_release and lockfile sources are unchanged (semver, TEA dedup). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…pport Dependency Track API Server and Frontend now have their own standalone products in sbomify, with the shared "Dependency Track" bundle referenced via bundle_product_id. The workflow builds PRODUCT_RELEASE with both IDs so SBOMs are tagged to both the standalone and bundle releases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
COMPONENT_VERSIONinstead of the mutable tag, fixing false dedup and enabling content traceabilityChanges
scripts/sources/docker-attestation.shimage_digesttoimage-digest.txtscripts/sources/chainguard.shcrane digest, write toimage-digest.txtscripts/lib/sbomify-api.shsbomify_digest_existsandsbomify_cleanup_old_artifacts.github/workflows/sbom-builder.ymlTest plan
🤖 Generated with Claude Code