Skip to content

Commit

Permalink
fix(sign): Store private key in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Dec 18, 2023
1 parent 0a4c958 commit b852ddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sign/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ runs:
- name: Sign container image
shell: bash
run: |
cosign sign -y --key ${{ inputs.signing-secret }} ${{ inputs.container }}@${TAGS}
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ inputs.container }}@${TAGS}
env:
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ inputs.signing-secret }}
TAGS: ${{ inputs.tags }}

0 comments on commit b852ddf

Please sign in to comment.