Skip to content

Commit a961b7a

Browse files
ci: redistribute concurrency-cancel guard to read-only check workflows (#52)
Redistributes the canonical read-only-check workflow templates that gained `concurrency{cancel-in-progress:true}` in hyperpolymath/standards#122, so this consumer stops holding account-wide concurrent-job slots on superseded runs. Files updated: codeql.yml governance.yml scorecard-enforcer.yml scorecard.yml secret-scanner.yml. Read-only checks only; no publish/mutation workflow touched. Refs hyperpolymath/standards#122 Generated with Claude Code
1 parent 4f3faf9 commit a961b7a

4 files changed

Lines changed: 42 additions & 26 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
2-
# 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)
1+
# SPDX-License-Identifier: PMPL-1.0
62
name: CodeQL Security Analysis
73

84
on:
@@ -13,6 +9,14 @@ on:
139
schedule:
1410
- cron: '0 6 * * 1'
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

@@ -34,12 +38,12 @@ jobs:
3438
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3539

3640
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v3.28.1
41+
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
3842
with:
3943
languages: ${{ matrix.language }}
4044
build-mode: ${{ matrix.build-mode }}
4145

4246
- name: Perform CodeQL Analysis
43-
uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v3.28.1
47+
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4448
with:
4549
category: "/language:${{ matrix.language }}"

.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: |

.github/workflows/scorecard.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
2-
# 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)
1+
# SPDX-License-Identifier: PMPL-1.0
62
name: OSSF Scorecard
73
on:
84
push:
@@ -11,6 +7,14 @@ on:
117
- cron: '0 4 * * *'
128
workflow_dispatch:
139

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

@@ -32,6 +36,6 @@ jobs:
3236
results_format: sarif
3337

3438
- name: Upload results
35-
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v3.31.8
39+
uses: github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.31.8
3640
with:
3741
sarif_file: results.sarif

.github/workflows/secret-scanner.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD
2-
# 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)
1+
# SPDX-License-Identifier: PMPL-1.0
62
# Prevention workflow - scans for hardcoded secrets before they reach main
73
name: Secret Scanner
84

@@ -11,6 +7,14 @@ on:
117
push:
128
branches: [main]
139

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

@@ -74,4 +78,4 @@ jobs:
7478
if [ $found -eq 1 ]; then
7579
echo "::error::Potential hardcoded secrets detected. Use environment variables instead."
7680
exit 1
77-
fi
81+
fi

0 commit comments

Comments
 (0)