Skip to content

Commit

Permalink
Update sample-signing.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zazathomas authored Jul 15, 2024
1 parent 1fad159 commit 4ba7289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/sample-signing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
run: docker push ${{env.IMAGE}}
- name: Retrieve image digest
run: export IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${{env.IMAGE}})
- name: Setup Cosign
run: |
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64"
sudo mv cosign-linux-amd64 /usr/local/bin/cosign
sudo chmod +x /usr/local/bin/cosign
- name: Sign image using Cosign
run: cosign sign --key ${{secrets.COSIGN_KEY}} $IMAGE_DIGEST
- name: Verify image signature
Expand Down

0 comments on commit 4ba7289

Please sign in to comment.