File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,11 +141,20 @@ jobs:
141141 # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
142142 TAGS : |
143143 ${{ steps.meta.outputs.tags }}
144- ${{ steps.meta_dockerhub.outputs.tags }}
145- ${{ steps.meta-full.outputs.tags }}
146- ${{ steps.meta_dockerhub-full.outputs.tags }}
147144 DIGEST : |
148145 ${{ steps.build-and-push.outputs.digest }}
149146 # This step uses the identity token to provision an ephemeral certificate
150147 # against the sigstore community Fulcio instance.
151148 run : echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
149+
150+ - name : Sign the published Docker image for full image
151+ if : ${{ github.event_name != 'pull_request' }}
152+ env :
153+ # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
154+ TAGS : |
155+ ${{ steps.meta-full.outputs.tags }}
156+ DIGEST : |
157+ ${{ steps.build-and-push-full.outputs.digest }}
158+ # This step uses the identity token to provision an ephemeral certificate
159+ # against the sigstore community Fulcio instance.
160+ run : echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
You can’t perform that action at this time.
0 commit comments