Repository navigation
Conversation
S2 of the supply-chain plan. Package sbom and cmd/sbom write CycloneDX 1.6 from what a build read - Go build info, an apko lock, a dpkg listing, an apk database split into shipped and formulation, a pnpm lock's runtime dependencies, versions.yaml pins, a file by its hash - merge BOMs under the file they describe, and check that every component has a version a scanner can match and a package URL or a hash. The same inputs are the same bytes: sorted components, a serial derived from the subject, SOURCE_DATE_EPOCH's time or none. attestgate's RequireSBOM holds an upload to a cyclonedx attestation before it too; it is off until a repository writes its SBOMs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
S2 of the supply-chain plan (PR 8 in the table): the deterministic CycloneDX 1.6 library and command the three repositories write their SBOMs with.
sbom(importable) on cyclonedx-go v0.12.0:Go(build info: the main module at the release's version, its modules with their go.sum hash, replacements as compiled, and stdlib),Apko,Dpkg,Apk(-onlyis what ships; the rest is formulation),Pnpm(runtime dependencies only, never dev),Pins(versions.yaml), andFile.Mergenests BOMs under a subject;Checkrefuses an empty version,(devel), or a component with neither a purl nor a hash.cmd/sbom: one subcommand per kind, plusmergeandcheck.attestgate.Gate.RequireSBOM: an upload also needs an earliercosign attest-blob --type cyclonedx. It is off, so bumping go-tools turns no repository red.check, and pnpm gives the same bytes on a second run.mutate: 135 refused, 0 survived.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.