Skip to content

Commit 91e6755

Browse files
committed
ci: redistribute canonical codeql.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent 0dd6990 commit 91e6755

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
name: CodeQL
1+
# SPDX-License-Identifier: PMPL-1.0
2+
name: CodeQL Security Analysis
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [main, master]
77
pull_request:
8-
branches: [ main ]
8+
branches: [main, master]
99
schedule:
10-
- cron: '0 0 * * 1' # Weekly on Monday
10+
- cron: '0 6 * * 1'
1111

1212
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
1313
# updates do not pile up queued runs against the shared account-wide
@@ -18,31 +18,32 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
permissions:
21-
actions: read
2221
contents: read
23-
security-events: write
2422

2523
jobs:
2624
analyze:
27-
name: Analyze
2825
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
security-events: write
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
language: [ 'rust' ]
32+
include:
33+
- language: javascript-typescript
34+
build-mode: none
35+
3336
steps:
34-
- name: Checkout code
35-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
37+
- name: Checkout
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3639

3740
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3
41+
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
3942
with:
4043
languages: ${{ matrix.language }}
41-
42-
- name: Autobuild
43-
uses: github/codeql-action/autobuild@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3
44+
build-mode: ${{ matrix.build-mode }}
4445

4546
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3
47+
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4748
with:
48-
category: "/language:${{matrix.language}}"
49+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)