Skip to content

Commit

Permalink
fix(sign-container): avoid running signing step if public (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand authored Nov 7, 2024
1 parent 24938ea commit ce43304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actions/sign-container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ runs:
shell: bash
run: echo "This action only runs on public repositories. To avoid leaking private information, the action will be stopped."
- name: Install Cosign
if: ${{ github.event.repository.visibility == 'public' }}
uses: sigstore/cosign-installer@v3
- name: Sign containers images
if: ${{ github.event.repository.visibility == 'public' }}
shell: bash
env:
TAGS: ${{ inputs.tags }}
Expand Down

0 comments on commit ce43304

Please sign in to comment.