Skip to content

Commit e8b3fd3

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

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/scorecard-enforcer.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ on:
99
- cron: '0 6 * * 1' # Weekly on Monday
1010
workflow_dispatch:
1111

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+
1220
permissions:
1321
contents: read
1422

@@ -19,19 +27,19 @@ jobs:
1927
security-events: write
2028
id-token: write # For OIDC
2129
steps:
22-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2331
with:
2432
persist-credentials: false
2533

2634
- name: Run Scorecard
27-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
35+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
2836
with:
2937
results_file: results.sarif
3038
results_format: sarif
3139
publish_results: true
3240

3341
- name: Upload SARIF
34-
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3
42+
uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4
3543
with:
3644
sarif_file: results.sarif
3745

@@ -54,7 +62,7 @@ jobs:
5462
check-critical:
5563
runs-on: ubuntu-latest
5664
steps:
57-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
65+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5866

5967
- name: Check SECURITY.md exists
6068
run: |

0 commit comments

Comments
 (0)