Skip to content

Commit aabd29a

Browse files
committed
fix(release): pin cosign to v2.x for goreleaser compatibility
cosign v3 mandates new bundle format (single .sigstore.json per artifact) when the default signing config is active, which breaks goreleaser's legacy --output-signature / --output-certificate layout. Rather than migrate goreleaser's signing layout, pin cosign to the latest v2.x line (which still emits .sig + .pem files alongside each artifact). Scorecard's Signed-Releases check accepts either format.
1 parent dbd7793 commit aabd29a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Install cosign
3333
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v4.1.1
34+
with:
35+
cosign-release: 'v2.6.0'
3436

3537
- name: Install syft (for SBOM generation)
3638
uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0

.goreleaser.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ signs:
3030
certificate: "${artifact}.pem"
3131
args:
3232
- sign-blob
33-
- --new-bundle-format=false
3433
- --output-certificate=${certificate}
3534
- --output-signature=${signature}
3635
- ${artifact}

0 commit comments

Comments
 (0)