-
-
Notifications
You must be signed in to change notification settings - Fork 32
68 lines (57 loc) · 1.64 KB
/
codeql-analysis.yml
File metadata and controls
68 lines (57 loc) · 1.64 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
62
63
64
65
66
67
name: CodeQL
on:
push:
branches: [main]
schedule:
# Run weekly on Mondays at 06:00 UTC to catch new CVE patterns
- cron: '0 6 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
container: debian:sid-slim
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
language: ['c-cpp']
steps:
- name: Install build dependencies
run: |
apt-get update
apt-get install -y \
git build-essential cmake pkg-config \
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev \
libsqlite3-dev libuv1-dev libllhttp-dev libcurl4-openssl-dev \
libcjson-dev libmbedtls-dev libmosquitto-dev
- name: Checkout
uses: actions/checkout@v5
with:
submodules: false
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# Use extended queries for more thorough security analysis
queries: security-extended
- name: Build for CodeQL
run: |
mkdir -p build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SOD=OFF \
-DENABLE_GO2RTC=OFF \
-DBUILD_TESTS=OFF
make -j$(nproc)
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"