Skip to content

Commit

Permalink
fix(sign-blob): test another way to get the repo visibilty
Browse files Browse the repository at this point in the history
  • Loading branch information
AEnguerrand committed Sep 12, 2024
1 parent c52100a commit 2a918bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/sign-blob/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
- name: Check if repository is public (signature are leaking private information)
shell: bash
run: |
if [[ "${{ github.repository_visibility }}" == "private" || "${{ github.repository_visibility }}" == "internal" ]]; then
if [[ "${{ github.event.repository.visibility }}" == "private" || "${{ github.event.repository.visibility }}" == "internal" ]]; then
echo "This workflow only runs on public repositories. To avoid leaking private information, the workflow will be stopped."
exit 0 # Stop the workflow, but without an error (successful exit)
fi
Expand Down

0 comments on commit 2a918bc

Please sign in to comment.