Skip to content

Commit

Permalink
Use cosign v2.2.3 (#5015)
Browse files Browse the repository at this point in the history
Also, auto-accept cosign prompts for non-destructive actions needed to
push to the transparency log when running from CI/CD.

Signed-off-by: Andrew Harding <azdagron@gmail.com>
  • Loading branch information
azdagron authored Mar 25, 2024
1 parent 6c14e91 commit 4285a8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/nightly_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ jobs:
id-token: write
packages: write

env:
COSIGN_EXPERIMENTAL: 1

steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Install cosign
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
with:
cosign-release: v1.13.1
cosign-release: v2.2.3
- name: Install regctl
uses: regclient/actions/regctl-installer@b6614f5f56245066b533343a85f4109bdc38c8cc # main
- name: Build images
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/release_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -587,16 +587,13 @@ jobs:
id-token: write
packages: write

env:
COSIGN_EXPERIMENTAL: 1

steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Install cosign
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
with:
cosign-release: v1.13.1
cosign-release: v2.2.3
- name: Install regctl
uses: regclient/actions/regctl-installer@b6614f5f56245066b533343a85f4109bdc38c8cc # main
- name: Download archived images
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/push-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ for img in "${OCI_IMAGES[@]}"; do

image_digest="$(jq -r '.manifests[0].digest' "${ROOTDIR}oci/${img}/index.json")"

cosign sign "${registry}/${img}@${image_digest}"
cosign sign -y "${registry}/${img}@${image_digest}"
done

0 comments on commit 4285a8b

Please sign in to comment.