-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.13 KB
/
codeql.yml
File metadata and controls
48 lines (41 loc) · 1.13 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
name: 'CI - CodeQL'
run-name: 'CodeQL - "${{ github.ref_name }}"'
permissions:
security-events: write
packages: read
actions: read
contents: read
on:
workflow_dispatch:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
language:
- cpp
- actions
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.1
with:
ref: ${{ github.ref }}
repository: '${{ github.repository }}'
fetch-depth: 1
submodules: recursive
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
- name: Run manual build steps
if: matrix.language == 'cpp'
shell: bash
run: |
./scripts/unix/linux/install-cmake.sh
sudo apt update && sudo apt install -y xorg-dev libegl1-mesa-dev
./scripts/unix/build.sh release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4