Skip to content

Commit d4a9e08

Browse files
committed
actions: update cosign from github starter workflow
1 parent 7d3a860 commit d4a9e08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ jobs:
9090
- name: Sign the published Docker image
9191
if: ${{ github.event_name != 'pull_request' }}
9292
env:
93-
COSIGN_EXPERIMENTAL: "true"
93+
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
94+
TAGS: ${{ steps.meta.outputs.tags }}
95+
DIGEST: ${{ steps.build-and-push.outputs.digest }}
9496
# This step uses the identity token to provision an ephemeral certificate
9597
# against the sigstore community Fulcio instance.
96-
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
98+
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

0 commit comments

Comments
 (0)