Skip to content

Commit db1dd18

Browse files
committed
Added CodeQL scanning to GitHub actions.
Signed-off-by: Eric Butcher <[email protected]>
1 parent 50c7577 commit db1dd18

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: ["main", "release**"]
6+
pull_request:
7+
branches: ["main", "release**"]
8+
schedule:
9+
- cron: "0 0 * * 1"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ${{ 'ubuntu-latest' }}
15+
permissions:
16+
security-events: write
17+
packages: read
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- language: javascript-typescript
24+
build-mode: none
25+
- language: python
26+
build-mode: none
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v3
33+
with:
34+
languages: ${{ matrix.language }}
35+
build-mode: ${{ matrix.build-mode }}
36+
config: |
37+
paths-ignore:
38+
- "coldfront/static/**"
39+
40+
queries: security-extended
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v3
44+
with:
45+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)