Skip to content

Commit

Permalink
add --yes flag to cosign verify
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Aug 19, 2024
1 parent 9dbbc33 commit e983ae7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/build-sign-publish-chainlink/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ runs:
shell: sh
run: |
echo "${{ inputs.cosign-public-key }}" > cosign.key
cosign verify --key cosign.key "${{ env.root_image_name }}"
cosign verify --key cosign.key "${{ env.root_image_name }}" --yes
rm -f cosign.key
- if: inputs.sign-images == 'true' && inputs.sign-method == 'keyless'
Expand All @@ -277,6 +277,7 @@ runs:
cosign verify "${{ env.root_image_name }}" \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "https://github.com/smartcontractkit/chainlink/.github/workflows/build-publish.yml@${{ github.ref }}"
--yes
- if: inputs.sign-images == 'true' && inputs.sign-method == 'keypair'
name: Sign the published non-root Docker image using keypair method
Expand All @@ -293,7 +294,7 @@ runs:
shell: sh
run: |
echo "${{ inputs.cosign-public-key }}" > cosign.key
cosign verify --key cosign.key "${{ env.nonroot_image_name }}"
cosign verify --key cosign.key "${{ env.nonroot_image_name }}" --yes
rm -f cosign.key
- if: inputs.sign-images == 'true' && inputs.sign-method == 'keyless'
Expand All @@ -309,3 +310,4 @@ runs:
cosign verify "${{ env.nonroot_image_name }}"
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "https://github.com/smartcontractkit/chainlink/.github/workflows/build-publish.yml@${{ github.ref }}"
--yes

0 comments on commit e983ae7

Please sign in to comment.