ci: sign console release artifacts with Cosign - #1171
Open
nbmaiti wants to merge 1 commit into
Open
Conversation
Add keyless Cosign signing to release artifacts, publish signature assets, and wire signing into semantic-release prepare flow for console releases.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1171 +/- ##
=======================================
Coverage 44.45% 44.45%
=======================================
Files 144 144
Lines 13732 13732
=======================================
Hits 6105 6105
Misses 7054 7054
Partials 573 573 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds keyless Sigstore/Cosign signing to the Console release pipeline, enabling users to verify the provenance of published release binaries using GitHub Actions OIDC (no long-lived signing secrets).
Changes:
- Added a
sign.shscript that signs and (optionally) verifies each release artifact viacosign sign-blob/verify-blob. - Updated semantic-release configuration to run signing during
prepareand upload.sig,.pem, and.cosign.bundle.jsonfiles as release assets. - Updated the release workflow to grant
id-token: writeand install Cosign, and added.gitattributesto enforce LF for scripts.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| sign.sh | Adds Cosign keyless signing + verification for the set of release artifacts. |
| .releaserc.json | Runs signing during release preparation and publishes signature/bundle assets. |
| .github/workflows/release.yml | Enables OIDC token issuance for the job and installs Cosign before semantic-release. |
| .gitattributes | Enforces LF endings for build.sh and sign.sh. |
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.
Signs each console release binary with keyless Cosign using GitHub Actions OIDC, so users can verify download provenance without trusting any stored secret. The signature bundles (.sig, .pem, .cosign.bundle.json) are published automatically alongside every release.
No secrets need to be provisioned — signing uses the short-lived OIDC token GitHub issues to the workflow at runtime.