Skip to content

Commit dc27be4

Browse files
amirejazdmjb
andauthored
update cosign signing config to support cosign v3 (#2246)
* add --bundle flag to cosign signing args for v3 compatibility * revert back to cosign v4 --------- Co-authored-by: Don Browne <dmjb@users.noreply.github.com>
1 parent dc11d30 commit dc27be4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/image-build-and-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
4040

4141
- name: Install Cosign
42-
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
42+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
4343

4444
- name: Build and Push Image to GHCR
4545
env:
@@ -125,7 +125,7 @@ jobs:
125125
126126
- name: Install Cosign
127127
if: startsWith(github.ref, 'refs/tags/')
128-
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
128+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
129129

130130
- name: Sign container image
131131
if: startsWith(github.ref, 'refs/tags/')
@@ -193,7 +193,7 @@ jobs:
193193
maintainer=Stacklok
194194
195195
- name: Install Cosign
196-
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
196+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
197197

198198
- name: Build and Push Image to GHCR
199199
env:
@@ -386,7 +386,7 @@ jobs:
386386
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
387387

388388
- name: Install Cosign
389-
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
389+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
390390

391391
- name: Build and Push Image to GHCR
392392
env:

.github/workflows/releaser-helm-charts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444

4545
- name: Install Cosign
46-
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
46+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
4747

4848
- name: Publish and Sign OCI Charts
4949
run: |

.github/workflows/releaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
uses: anchore/sbom-action/download-syft@8e94d75ddd33f69f691467e42275782e4bfefe84 # v0.20.9
7676

7777
- name: Install Cosign
78-
uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1
78+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
7979

8080
- name: Build and Verify Binary Version
8181
env:

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ signs:
106106
- "sign-blob"
107107
- "--output-signature=${signature}"
108108
- "--output-certificate=${certificate}"
109+
- "--bundle=${signature}" # added for cosign v3: required when using --output-signature or --signing-config
109110
- "${artifact}"
110111
- "--yes" # needed on cosign 2.0.0+
111112
artifacts: archive

0 commit comments

Comments
 (0)