File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed
Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change 1+ # Deprecated: unpinned action detection is already covered by zizmor.
12name : Frizbee pinning check
23on :
34 workflow_call :
78 name : frizbee
89 runs-on : ubuntu-latest
910 steps :
10- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
11- with :
12- persist-credentials : false
13- - name : Install frizbee
14- env :
15- GITHUB_TOKEN : ${{ github.token }}
16- run : |
17- gh release download v0.1.8 --repo stacklok/frizbee \
18- --pattern 'frizbee_0.1.8_linux_amd64.tar.gz' \
19- --output frizbee.tar.gz
20- tar -xzf frizbee.tar.gz frizbee
21- sudo mv frizbee /usr/local/bin/
22- rm frizbee.tar.gz
23- - name : Check pinning
24- env :
25- GITHUB_TOKEN : ${{ github.token }}
26- run : |
27- # Run frizbee and capture exit code
28- frizbee actions --dry-run --error .github/workflows/ && exit 0
29-
30- # On failure, show exactly which actions are unpinned
31- echo ""
32- echo "The following actions are not pinned to a SHA digest:"
33- echo ""
34- grep -rn 'uses:' .github/workflows/ | grep -v '@[0-9a-f]\{40,\}' | grep -v '^#' || true
35- echo ""
36- echo "Fix with: frizbee actions .github/workflows/"
37- exit 1
11+ - run : echo "Skipped — unpinned action detection is covered by zizmor."
You can’t perform that action at this time.
0 commit comments