ci: add Sigstore keyless release signing - #49
Merged
Conversation
- New sign-release workflow (workflow_dispatch): downloads the assets of an existing immutable release, verifies them against the published SHA256SUMS.txt, signs each with cosign keyless (GitHub OIDC identity) and produces a signature index. - release.yml: future releases sign every artifact with cosign keyless in the build and publish jobs and ship the .sigstore.json bundles as release assets from the start. - No private keys anywhere: identity is the GitHub Actions OIDC token (issuer https://token.actions.githubusercontent.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.
What
sign-release.yml(workflow_dispatch): re-signs the assets of an existing immutable release without touching it — downloads assets, verifies them against the publishedSHA256SUMS.txt, signs each blob with cosign keyless (GitHub OIDC), and emitssignatures/<tag>/bundles plus anindex.json(artifact → SHA-256 → bundle).release.yml: build and publish jobs now sign every release artifact with cosign keyless and ship the.sigstore.jsonbundles as release assets from the start.id-token: writeadded only where signing happens (build already had it for attestations; publish gets it for the files generated there).Trust model
https://token.actions.githubusercontent.com.sign-release.yml@refs/heads/main(retroactive signing),release.yml@refs/tags/v*(future releases).v0.13.0 is immutable and is not modified by this PR; its bundles land in
signatures/v0.13.0/in a follow-up commit after the signing run.