Skip to content

Commit f535230

Browse files
josephperrottalan-agius4
authored andcommitted
ci: configure codeql locally within the repo to allow for customization
Moving to the configuration being in the repo allows us to specify which specific rules are run in analysis. (cherry picked from commit 09cb935)
1 parent 45abd15 commit f535230

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
branches: ['main', '*.*.x']
6+
schedule:
7+
- cron: '39 9 * * 1'
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: 'ubuntu-latest'
13+
permissions:
14+
security-events: write
15+
packages: read
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- language: javascript-typescript
21+
build-mode: none
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
persist-credentials: false
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 #v3.28.8
29+
with:
30+
languages: javascript-typescript
31+
build-mode: none
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@86b04fb0e47484f7282357688f21d5d0e32175fe #v3.28.8
34+
with:
35+
category: '/language:javascript-typescript'

0 commit comments

Comments
 (0)