Skip to content

Commit fd36757

Browse files
committed
ci: redistribute canonical scorecard-enforcer.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent 31a1ff0 commit fd36757

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/scorecard-enforcer.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
permissions:
21-
security-events: write
22-
id-token: write
2321
contents: read
2422

2523
jobs:
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:
@@ -42,7 +39,7 @@ jobs:
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

@@ -64,8 +61,6 @@ jobs:
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

@@ -78,8 +73,8 @@ jobs:
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"

0 commit comments

Comments
 (0)