Skip to content

Commit 89e78b2

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

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/scorecard-enforcer.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
21
# SPDX-License-Identifier: PMPL-1.0-or-later
3-
=======
4-
# SPDX-License-Identifier: MPL-2.0-or-later
5-
>>>>>>> 1637fa5 (chore: sync from parent repo automation)
62
# Prevention workflow - runs OpenSSF Scorecard and fails on low scores
73
name: OpenSSF Scorecard Enforcer
84

@@ -13,6 +9,14 @@ on:
139
- cron: '0 6 * * 1' # Weekly on Monday
1410
workflow_dispatch:
1511

12+
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
13+
# updates do not pile up queued runs against the shared account-wide
14+
# Actions concurrency pool. Applied only to read-only check workflows
15+
# (no publish/mutation), so cancelling a superseded run is always safe.
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
permissions:
1721
contents: read
1822

@@ -23,7 +27,7 @@ jobs:
2327
security-events: write
2428
id-token: write # For OIDC
2529
steps:
26-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2731
with:
2832
persist-credentials: false
2933

@@ -35,7 +39,7 @@ jobs:
3539
publish_results: true
3640

3741
- name: Upload SARIF
38-
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v3
42+
uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4
3943
with:
4044
sarif_file: results.sarif
4145

@@ -58,7 +62,7 @@ jobs:
5862
check-critical:
5963
runs-on: ubuntu-latest
6064
steps:
61-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
65+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6266

6367
- name: Check SECURITY.md exists
6468
run: |

0 commit comments

Comments
 (0)