Skip to content

Commit

Permalink
fix(ci): update cosign
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored Apr 24, 2024
1 parent 12e3d34 commit 9423c20
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v2
uses: sigstore/cosign-installer@v3.5.0
with:
cosign-release: "v1.13.1"
cosign-release: 'v2.2.4'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -96,7 +96,9 @@ jobs:
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

0 comments on commit 9423c20

Please sign in to comment.