File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,17 +18,14 @@ concurrency:
1818 cancel-in-progress : true
1919
2020permissions :
21- security-events : write
22- id-token : write
2321 contents : read
2422
2523jobs :
2624 scorecard :
2725 runs-on : ubuntu-latest
2826 permissions :
2927 security-events : write
30- id-token : write
31- contents : read
28+ id-token : write # For OIDC
3229 steps :
3330 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3431 with :
4239 publish_results : true
4340
4441 - name : Upload SARIF
45- uses : github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4
42+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4
4643 with :
4744 sarif_file : results.sarif
4845
6461 # Check specific high-priority items
6562 check-critical :
6663 runs-on : ubuntu-latest
67- permissions :
68- contents : read
6964 steps :
7065 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7166
7873
7974 - name : Check for pinned dependencies
8075 run : |
81- # Check workflows for unpinned actions - using anchored regex to avoid self-match
82- unpinned=$(grep -rE "^[[:space:]]+ uses:.*@v[0-9]" .github/workflows/*.yml 2>/dev/null | grep -v "#" | head -5 || true)
76+ # Check workflows for unpinned actions
77+ unpinned=$(grep -r " uses:.*@v[0-9]" .github/workflows/*.yml 2>/dev/null | grep -v "#" | head -5 || true)
8378 if [ -n "$unpinned" ]; then
8479 echo "::warning::Found unpinned actions:"
8580 echo "$unpinned"
You can’t perform that action at this time.
0 commit comments