Skip to content

Commit

Permalink
use --yes flag in cosign sign and update cosign-installer version
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Aug 19, 2024
1 parent 4a26958 commit 9dbbc33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build-sign-publish-chainlink/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ runs:
- if: inputs.sign-images == 'true'
name: Install cosign
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0
with:
cosign-release: "v2.4.0"

Expand All @@ -253,7 +253,7 @@ runs:
COSIGN_PASSWORD: "${{ inputs.cosign-password }}"
run: |
echo "${{ inputs.cosign-private-key }}" > cosign.key
cosign sign --key cosign.key "${{ env.root_image_digest }}"
cosign sign --key cosign.key "${{ env.root_image_name }}" --yes
rm -f cosign.key
- if: inputs.verify-signature == 'true' && inputs.sign-method == 'keypair'
Expand All @@ -268,7 +268,7 @@ runs:
name: Sign the published root Docker image using keyless method
shell: sh
run: |
cosign sign "${{ env.root_image_digest }}"
cosign sign "${{ env.root_image_name }}" --yes
- if: inputs.verify-signature == 'true' && inputs.sign-method == 'keyless'
name: Verify the signature of the published root Docker image using keyless
Expand All @@ -285,7 +285,7 @@ runs:
COSIGN_PASSWORD: "${{ inputs.cosign-password }}"
run: |
echo "${{ inputs.cosign-private-key }}" > cosign.key
cosign sign --key cosign.key "${{ env.nonroot_image_digest }}"
cosign sign --key cosign.key "${{ env.nonroot_image_name }}" --yes
rm -f cosign.key
- if: inputs.verify-signature == 'true' && inputs.sign-method == 'keypair'
Expand All @@ -300,7 +300,7 @@ runs:
name: Sign the published non-root Docker image using keyless method
shell: sh
run: |
cosign sign "${{ env.nonroot_image_digest }}"
cosign sign "${{ env.nonroot_image_name }}" --yes
- if: inputs.verify-signature == 'true' && inputs.sign-method == 'keyless'
name: Verify the signature of the published non-root Docker image using keyless
Expand Down
1 change: 0 additions & 1 deletion .goreleaser.develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ docker_signs:
- "sign"
- "${artifact}"
- "--yes"
# stdin: "{{ .Env.COSIGN_PASSWORD }}"

checksum:
name_template: "checksums.txt"
Expand Down

0 comments on commit 9dbbc33

Please sign in to comment.