Repository navigation
ci(release): CycloneDX SBOM + sha256 sidecar as release assets, build-provenance attestations - #878
Merged
Merged
Conversation
…nce attestations Org supply-chain layer: every tag release now emits CycloneDX 1.6 JSON via syft (file-source mode over the workspace Gemfile.lock that bundler-cache materializes), names it interscript-<version>.cdx.json, attaches it with a .sha256 sidecar to the GitHub release for the pushed tag, and attests the gem + SBOM via actions/attest-build-provenance (continue-on-error). syft replaces the cyclonedx-ruby gem, which only writes legacy CycloneDX 1.1 XML. Post-publish steps never gate rubygems.org publishing. Versions not bumped.
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
.sha256sidecar (house sidecar pattern) to the GitHub release for the pushed tag, alongsidegh attestation-compatible build provenance for the gem + SBOM.Gemfile.lock— deterministic and rooted inside the checkout. The lockfile already exists at this point (bundler-cachematerializes it; the Gemfile's conditional../mapspath dep falls back to the registry on runners).cyclonedx-rubygem was evaluated and rejected: v1.1.0 emits only legacy CycloneDX 1.1 XML (and needs nokogiri/rest_client + network metadata fetches) — unusable for the org-wide CycloneDX JSON standard.continue-on-error; post-publish steps never gate rubygems.org publishing (OIDC trusted publishing untouched). Versions NOT bumped.Local verification
syft Gemfile.lock --source-name interscript --source-version 3.8.0 -o [email protected]=...on an isolated fresh checkout: spec 1.6, rootinterscript 3.8.0, 112 gem components, all locations rooted at/Gemfile.lock.Test plan
gh attestation listshows gem + SBOM provenance