Repository navigation
feat: sign release checksums in the release workflow - #2112
Merged
TerryHowe merged 2 commits intoJul 14, 2026
Merged
Conversation
The checksums.txt.asc signature has been produced manually per release, which meant it was missed for v1.3.3 (see oras-project#2111). Enable goreleaser's signing so the checksums file is signed automatically as part of the release workflow. - .goreleaser.yml: enable a scoped signs block (artifacts: checksum) producing ${artifact}.asc with a dedicated project signing key via loopback pinentry. - release-github.yml: import the signing key from the GPG_PRIVATE_KEY secret and pass GPG_PASSPHRASE to goreleaser. - KEYS: add the 'ORAS Project Release Signing' public key and document how to verify a release. Requires the GPG_PRIVATE_KEY and GPG_PASSPHRASE repository secrets to be configured. Relates to oras-project#2006. Signed-off-by: Terry Howe <[email protected]>
TerryHowe
requested review from
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
July 13, 2026 22:15
Restore per-archive .asc signatures that were present through v1.3.2. The signs block was scoped to 'checksum', so v1.3.3 only produced oras_1.3.3_checksums.txt.asc and no per-.tar.gz/.zip signatures. Widen the scope to 'all' so every archive (and SBOM) is signed again. Fixes oras-project#2113 Signed-off-by: Terry Howe <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2112 +/- ##
==========================================
- Coverage 87.33% 87.26% -0.08%
==========================================
Files 138 138
Lines 5488 5488
==========================================
- Hits 4793 4789 -4
- Misses 415 419 +4
Partials 280 280 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1 task
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 the release
checksums.txtautomatically in the release workflow so the.ascsignature file is always published.Why
The
oras_<version>_checksums.txt.ascsignature has been produced by a manual, out-of-band maintainer step each release. That step was missed for v1.3.3, so the signature file was absent from the release assets and consumers' GPG-based verification pipelines broke (#2111). The.ascfor v1.3.3 has since been added by hand; this PR prevents a recurrence by automating it.Changes
.goreleaser.yml— enable a scopedsignsblock (artifacts: checksum) that produces${artifact}.ascusing a dedicated ORAS Project Release Signing key via loopback pinentry..github/workflows/release-github.yml— import the signing key from theGPG_PRIVATE_KEYsecret and passGPG_PASSPHRASEto goreleaser.KEYS— add the new project signing public key (C6FC42F0DE84A345FAADB742F44418110791EF37) and document how to verify a release.New signing key
This introduces a dedicated project signing key rather than continuing to sign with an individual maintainer's personal key. The new public key is added to
KEYS. Both the old and new keys are listed, so this does not invalidate signatures on prior releases — but anyone pinning a specific maintainer key for verification should add the new one.Required before this can be used
Two repository secrets must be configured on
oras-project/orasbefore the next tagged release:GPG_PRIVATE_KEY— ASCII-armored private key for the signing key aboveGPG_PASSPHRASE— its passphraseVerifying a release (after this lands)
Relates to #2111, #2006.