Skip to content

Commit 609321b

Browse files
committed
fix(release): sign checksums as sigstore bundle for cosign v3
cosign v3 ignores --output-signature/--output-certificate under the new bundle format and fails on the empty --bundle path. Emit checksums.txt.sigstore.json instead; update verify docs.
1 parent 62d05a5 commit 609321b

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.goreleaser.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ sboms:
5656
signs:
5757
- id: cosign
5858
cmd: cosign
59-
signature: "${artifact}.sig"
60-
certificate: "${artifact}.pem"
61-
# No explicit --oidc-provider/--oidc-issuer: cosign v3 rejects service
62-
# URLs when its signing config is active, and it auto-detects the GitHub
63-
# Actions ambient OIDC token anyway.
59+
# cosign v3: keyless via ambient GitHub Actions OIDC (explicit
60+
# --oidc-* flags conflict with its signing config), and signature +
61+
# certificate ship together in a sigstore bundle instead of separate
62+
# .sig/.pem files. Verify with:
63+
# cosign verify-blob --bundle checksums.txt.sigstore.json checksums.txt \
64+
# --certificate-identity-regexp 'github.com/qaiser42/stackit-nuke' \
65+
# --certificate-oidc-issuer https://token.actions.githubusercontent.com
66+
signature: "${artifact}.sigstore.json"
6467
args:
6568
- sign-blob
6669
- "--yes"
67-
- "--output-certificate=${certificate}"
68-
- "--output-signature=${signature}"
70+
- "--bundle=${signature}"
6971
- "${artifact}"
7072
artifacts: checksum

docs/releases.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ Releases are produced by the [`release`](https://github.com/qaiser42/stackit-nuk
1212
## Verifying a release
1313

1414
```bash
15-
# checksum signature
15+
# checksum signature (sigstore bundle contains signature + certificate)
1616
cosign verify-blob \
17-
--certificate checksums.txt.pem \
18-
--signature checksums.txt.sig \
17+
--bundle checksums.txt.sigstore.json \
1918
--certificate-identity-regexp 'github.com/qaiser42/stackit-nuke' \
2019
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
2120
checksums.txt

0 commit comments

Comments
 (0)