Skip to content

Commit c99ed21

Browse files
authored
fix: update cosign signing to use bundle format for v3 compatibility (#783)
The release workflow was failing because cosign v3 no longer generates separate .pem certificate files with --output-certificate. Updated to use the new --bundle flag which combines certificate and signature into a single .sigstore.json file. Changes: - Remove certificate field and --output-certificate flag from signs config - Use signature field with .sigstore.json extension - Remove deprecated COSIGN_EXPERIMENTAL=1 environment variable Fixes #782 Signed-off-by: Engin Diri <engin.diri@ediri.de>
1 parent a370593 commit c99ed21

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@ checksum:
3636

3737
signs:
3838
- cmd: cosign
39-
env:
40-
- COSIGN_EXPERIMENTAL=1
41-
certificate: '${artifact}.pem'
39+
signature: '${artifact}.sigstore.json'
4240
args:
4341
- sign-blob
44-
- '-y'
45-
- '--output-certificate=${certificate}'
4642
- '--bundle=${signature}'
4743
- '${artifact}'
44+
- '-y'
4845
artifacts: all
4946
output: true
5047

@@ -98,14 +95,12 @@ docker_manifests:
9895

9996
docker_signs:
10097
- cmd: cosign
101-
env:
102-
- COSIGN_EXPERIMENTAL=1
10398
artifacts: manifests
10499
output: true
105100
args:
106101
- 'sign'
107-
- '-y'
108102
- '${artifact}'
103+
- '-y'
109104

110105
brews:
111106
- repository:

0 commit comments

Comments
 (0)