Use image digest instead of tag when signing the released image with cosign (#960)

Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
Cosmin Cojocar 2023-05-17 15:58:25 +02:00 committed by GitHub
parent 6df05bd7a3
commit 87cc45e1cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ jobs:
push: true
build-args: GO_VERSION=1.20
- name: Sign Docker Image
run: cosign sign --yes --key /tmp/cosign.key ${TAGS}
run: cosign sign --yes --key /tmp/cosign.key ${DIGEST}
env:
TAGS: ${{steps.meta.outputs.tags}}
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}