Skip to content

Commit 7f51f96

Browse files
authored
CodeQL workflow configuration
1 parent 42cdf27 commit 7f51f96

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: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
schedule:
9+
- cron: '20 19 * * 4'
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: c-cpp
24+
build-mode: autobuild
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@v4
33+
with:
34+
languages: ${{ matrix.language }}
35+
build-mode: ${{ matrix.build-mode }}
36+
37+
- name: Run manual build steps
38+
if: matrix.build-mode == 'manual'
39+
shell: bash
40+
run: scons
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v4
44+
with:
45+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)