File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [main, master]
66 workflow_dispatch :
77
8- permissions : read-all
8+ permissions :
9+ contents : read
910
1011jobs :
1112 trigger-boj :
Original file line number Diff line number Diff line change 99 - cron : ' 0 6 * * 1' # Weekly on Monday
1010 workflow_dispatch :
1111
12- permissions : read-all
12+ permissions :
13+ security-events : write
14+ id-token : write
15+ contents : read
1316
1417jobs :
1518 scorecard :
1619 runs-on : ubuntu-latest
1720 permissions :
1821 security-events : write
19- id-token : write # For OIDC
22+ id-token : write
23+ contents : read
2024 steps :
2125 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2226 with :
5256 # Check specific high-priority items
5357 check-critical :
5458 runs-on : ubuntu-latest
59+ permissions :
60+ contents : read
5561 steps :
5662 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5763
6470
6571 - name : Check for pinned dependencies
6672 run : |
67- # Check workflows for unpinned actions
68- unpinned=$(grep -r " uses:.*@v[0-9]" .github/workflows/*.yml 2>/dev/null | grep -v "#" | head -5 || true)
73+ # Check workflows for unpinned actions - using anchored regex to avoid self-match
74+ unpinned=$(grep -rE "^[[:space:]]+ uses:.*@v[0-9]" .github/workflows/*.yml 2>/dev/null | grep -v "#" | head -5 || true)
6975 if [ -n "$unpinned" ]; then
7076 echo "::warning::Found unpinned actions:"
7177 echo "$unpinned"
Original file line number Diff line number Diff line change 1+ Scorecard requirement placeholder
You can’t perform that action at this time.
0 commit comments