Skip to content

Commit 8b0d07f

Browse files
committed
ci: redistribute canonical codeql.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent 4f3faf9 commit 8b0d07f

1 file changed

Lines changed: 11 additions & 7 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 }}"

0 commit comments

Comments
 (0)