-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.08 KB
/
Copy pathcodeql.yml
File metadata and controls
49 lines (43 loc) · 1.08 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
name: "CodeQL"
concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true
on:
push:
branches: master
paths:
- '**'
- '!**.yml'
- '!**.md'
- '**/codeql.yml'
jobs:
analyze:
name: Analyze (cpp)
runs-on: ubuntu-24.04
permissions:
# required to upload the analysis results
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
# Fetch the immediate parent so a PR head can be checked out.
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: 'cpp'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y meson ninja-build libncurses-dev
- name: Build
run: |
meson setup builddir
meson compile -C builddir
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:cpp"