Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/frizbee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ jobs:
- name: Check pinning
env:
GITHUB_TOKEN: ${{ github.token }}
run: frizbee actions --dry-run --error .github/workflows/
run: |
# Run frizbee and capture exit code
frizbee actions --dry-run --error .github/workflows/ && exit 0

# On failure, show exactly which actions are unpinned
echo ""
echo "The following actions are not pinned to a SHA digest:"
echo ""
grep -rn 'uses:' .github/workflows/ | grep -v '@[0-9a-f]\{40,\}' | grep -v '^#' || true
echo ""
echo "Fix with: frizbee actions .github/workflows/"
exit 1