Skip to content

Commit 571392c

Browse files
committed
ci: redistribute canonical codeql.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent 7584dfa commit 571392c

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-License-Identifier: MPL-2.0-or-later
1+
# SPDX-License-Identifier: PMPL-1.0
22
name: CodeQL Security Analysis
33

44
on:
@@ -9,6 +9,14 @@ on:
99
schedule:
1010
- cron: '0 6 * * 1'
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

@@ -30,12 +38,12 @@ jobs:
3038
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3139

3240
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.28.1
41+
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
3442
with:
3543
languages: ${{ matrix.language }}
3644
build-mode: ${{ matrix.build-mode }}
3745

3846
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.28.1
47+
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4048
with:
4149
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)