Skip to content

Commit 19c1f53

Browse files
committed
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.
1 parent 9726cd0 commit 19c1f53

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/codeql.yml

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

0 commit comments

Comments
 (0)