ci(release): generate signed SBOM on each release#41
Open
dgokeeffe wants to merge 1 commit into
Open
Conversation
Adds supply-chain provenance to every GitHub Release so enterprise security teams (PCI-DSS / ISO 27001 / APRA CPS 234) can verify what shipped and prove it came from this repo's workflow. What's attached to each release now: - coda-sbom.cdx.json — CycloneDX SBOM (Python + npm deps via syft) - coda-sbom.cdx.json.cosign.bundle — cosign keyless signature bundle (cert + signature + Rekor inclusion proof) Signing uses GitHub OIDC — no long-lived keys. The signing identity is anchored to this workflow path and the release tag, and a public transparency-log entry is recorded in Rekor. Workflow changes: - Added `id-token: write` permission (required for OIDC keyless signing) - Added anchore/sbom-action step (SHA-pinned, format=cyclonedx-json) - Added sigstore/cosign-installer + sign-blob + in-workflow verify - Extended softprops/action-gh-release `files:` to attach both artefacts README changes: - New "Verifying release provenance" subsection with the cosign verify-blob command operators can run. Co-authored-by: Isaac
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
Every GitHub Release now publishes a signed CycloneDX SBOM, giving enterprise security reviewers a verifiable record of what shipped and proof that the bits came from this repo's workflow.
What's attached to each release going forward
coda-sbom.cdx.jsonanchore/sbom-action)coda-sbom.cdx.json.cosign.bundleHow signing works
cosign is invoked with
--yesand reads a short-lived OIDC token from GitHub Actions. There are no long-lived signing keys in this repo. The signing certificate's identity is bound to:https://github.com/databrickslabs/coding-agents-databricks-apps/.github/workflows/release.ymlrefs/tags/vX.Y.ZA public transparency-log entry is recorded in Rekor for every signature.
The workflow runs
cosign verify-blobagainst its own output before publishing — if signing or verification fails, the release is not created.Operator verification
Why enterprise reviewers care
Workflow changes
id-token: writepermission (required for cosign OIDC keyless signing)anchore/sbom-action@9f73021…(v0.20.5, SHA-pinned) — generatescyclonedx-jsonsigstore/cosign-installer@d7d6e07…(v3.5.0, SHA-pinned) +cosign sign-blobsoftprops/action-gh-releasefiles:to attach both artefacts to the releaseTrade-offs / what this PR is NOT
cosign sign <image-ref>alongside this.Test plan
python -c "import yaml; yaml.safe_load(open('.github/workflows/release.yml'))"passes locally)This pull request and its description were written by Isaac.