Skip to content

Commit a98b3ff

Browse files
committed
ci: redistribute canonical codeql.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent 384de75 commit a98b3ff

1 file changed

Lines changed: 31 additions & 6 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
# CodeQL disabled - no scannable source code detected
1+
# SPDX-License-Identifier: PMPL-1.0
32
name: CodeQL Security Analysis
43

54
on:
6-
workflow_dispatch: # Manual trigger only
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
schedule:
10+
- cron: '0 6 * * 1'
711

812
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
913
# updates do not pile up queued runs against the shared account-wide
@@ -17,8 +21,29 @@ permissions:
1721
contents: read
1822

1923
jobs:
20-
placeholder:
24+
analyze:
2125
runs-on: ubuntu-latest
22-
if: false
26+
permissions:
27+
contents: read
28+
security-events: write
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
include:
33+
- language: javascript-typescript
34+
build-mode: none
35+
2336
steps:
24-
- run: echo "Enable when source code is added"
37+
- name: Checkout
38+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
42+
with:
43+
languages: ${{ matrix.language }}
44+
build-mode: ${{ matrix.build-mode }}
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
48+
with:
49+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)