Skip to content

Commit 69889c3

Browse files
Updating the cosign library for Github Actions (#1752)
* Updating the cosign library for Github Actions * we have decided to use rekor --------- Co-authored-by: Andrew Lavery <[email protected]>
1 parent 9d9b3c5 commit 69889c3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/build-test-deploy.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,9 @@ jobs:
233233
with:
234234
go-version: "1.23"
235235

236-
- uses: sigstore/cosign-installer@v3
236+
- uses: sigstore/cosign-installer@v3.8.1
237237
with:
238-
# DO NOT USE v2 until we decide on whether to use Rekor or not
239-
cosign-release: "v1.13.1" # Binary version to install
238+
cosign-release: "v2.4.3" # Binary version to install
240239

241240
- name: Get Cosign Key
242241
run: |

Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,13 @@ sbom/assets/troubleshoot-sbom.tgz: generate-sbom
241241
tar -czf sbom/assets/troubleshoot-sbom.tgz sbom/spdx/*.spdx
242242

243243
sbom: sbom/assets/troubleshoot-sbom.tgz
244-
cosign sign-blob -key cosign.key sbom/assets/troubleshoot-sbom.tgz > sbom/assets/troubleshoot-sbom.tgz.sig
245-
cosign public-key -key cosign.key -outfile sbom/assets/key.pub
244+
cosign sign-blob \
245+
--key ./cosign.key \
246+
--tlog-upload \
247+
--yes \
248+
--rekor-url=https://rekor.sigstore.dev \
249+
sbom/assets/troubleshoot-sbom.tgz > sbom/assets/troubleshoot-sbom.tgz.sig
250+
cosign public-key --key cosign.key --outfile sbom/assets/key.pub
246251

247252
.PHONY: scan
248253
scan:

0 commit comments

Comments
 (0)