Skip to content

Commit

Permalink
chore(verify): Default to public key verification
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Dec 19, 2023
1 parent ab2c91d commit 4e9d910
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ inputs:
description: 'The certificate OIDC issuer'
required: false
verification:
description: 'The type of verification to use (certificate or public-key)'
description: 'The type of verification to use, certificate or publickey'
default: 'public-key'
required: true
runs:
using: "composite"
Expand All @@ -36,6 +37,9 @@ runs:
if [[ -z ${{ inputs.container }} ]]; then
exit 1
fi
if [[ -z ${{ inputs.verification }} ]]; then
exit 1
fi
if [[ ${{ inputs.verification }} == "public-key" ]]; then
if [[ -n ${{ inputs.pubkey }} ]]; then
cosign verify --key ${{ inputs.pubkey }} ${{ steps.container_case.outputs.lowercase }}
Expand Down

0 comments on commit 4e9d910

Please sign in to comment.