-
-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (50 loc) · 1.35 KB
/
codeql-cpp.yaml
File metadata and controls
54 lines (50 loc) · 1.35 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
name: codeql-cpp
permissions: { }
on:
push:
branches:
- main
paths:
- cpp/**
- testdata/**
- .github/**
pull_request:
branches:
- main
paths:
- cpp/**
- testdata/**
- .github/**
schedule:
- cron: '21 5 * * 0'
concurrency:
# Cancels in-progress runs only for pull requests
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze C++
runs-on: 'ubuntu-latest'
permissions:
security-events: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
with:
languages: c-cpp
build-mode: manual
tools: linked
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- name: install dependencies
working-directory: cpp
run: |
cmake -P cmake/cmate --cc=gcc install
- name: configure and build
working-directory: cpp
run: |
cmake -P cmake/cmate --cc=gcc build --release
- uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
with:
category: "/language:cpp"