Skip to content

Commit

Permalink
fix(action): add shell property
Browse files Browse the repository at this point in the history
  • Loading branch information
Windemiatrix committed May 28, 2024
1 parent 2a52fe2 commit 9be5d9d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ runs:
uses: sigstore/cosign-installer@v3.5.0

- name: Sign image with a key
env:
TAGS: ${{ inputs.image-tags }}
COSIGN_PRIVATE_KEY: ${{ inputs.cosign-private-key }}
COSIGN_PASSWORD: ${{ inputs.cosign-password }}
DIGEST: ${{ inputs.image-digest }}
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${images}
env:
TAGS: ${{ inputs.image-tags }}
COSIGN_PRIVATE_KEY: ${{ inputs.cosign-private-key }}
COSIGN_PASSWORD: ${{ inputs.cosign-password }}
DIGEST: ${{ inputs.image-digest }}
shell: bash

- name: Sign the images with GitHub OIDC Token
env:
Expand All @@ -49,3 +50,4 @@ runs:
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}
shell: bash

0 comments on commit 9be5d9d

Please sign in to comment.