Repository navigation
61 lines (51 loc) · 1.57 KB
/
Copy pathcodeql.yml
File metadata and controls
61 lines (51 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CodeQL Security Scan
on:
push:
branches: [main]
paths:
- 'src/**'
- 'rust-core/**'
- '.github/workflows/codeql.yml'
pull_request:
branches: [main]
schedule:
# Weekly scan even without code changes
- cron: '0 6 * * 1'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Initialize CodeQL
uses: github/codeql-action/init@5e316336eb4f107009e477d4bfbfff13d7250fae # v4
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Install build deps
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake \
qtbase5-dev libqscintilla2-qt5-dev \
libqt5charts5-dev libqt5sql5-sqlite
- name: Install Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-05-14
- name: Build Rust core
run: cd rust-core && cargo build --release
- name: Build C++
run: |
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5e316336eb4f107009e477d4bfbfff13d7250fae # v4
with:
category: "/language:${{ matrix.language }}"