Skip to content

Commit

Permalink
fix(sign-container): do not run the action in case of private reposit…
Browse files Browse the repository at this point in the history
…ory to not leak metadata (#48)
  • Loading branch information
AEnguerrand authored Nov 7, 2024
1 parent 38bd386 commit 655e6ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actions/sign-container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Check if repository is public (signature are leaking private information)
if: ${{ github.event.repository.visibility != 'public' }}
shell: bash
run: echo "This action only runs on public repositories. To avoid leaking private information, the action will be stopped."
- name: Install Cosign
uses: sigstore/cosign-installer@v3
- name: Sign containers images
Expand Down

0 comments on commit 655e6ae

Please sign in to comment.