Repository navigation
70 lines (60 loc) · 1.77 KB
/
Copy pathcodeql-cpp.yaml
File metadata and controls
70 lines (60 loc) · 1.77 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
68
69
70
name: codeql-cpp
permissions: {}
on:
push:
branches:
- main
paths:
- cpp/**
- testdata/**
- .github/**
pull_request:
branches:
- main
paths:
- cpp/**
- testdata/**
- .github/**
schedule:
- cron: '48 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: ccache
uses: hendrikmuhs/ccache-action@f09c25b45002a07be2955cbe52e8cee55643f89d # v1.2.24
with:
key: ${{ github.job }}-${{ github.ref }}
append-timestamp: false
save: ${{ github.ref == 'refs/heads/main' }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y nlohmann-json3-dev
- name: Install cucumber/messages
# TODO: Needs a tagged version
uses: cucumber/ci-actions/install-cpp-dep@8bbc6bac84313ef426e8a0e6ffa64659d0dc174b
with:
dependency: dependencies/messages.version
working-directory: cpp
- uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: c-cpp
build-mode: manual
tools: linked
- name: Configure
working-directory: cpp
run: cmake --workflow --preset host-system
- uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
category: "/language:cpp"