Skip to content

Commit 616065a

Browse files
committed
ci: add CodeQL analysis workflow (#243)
1 parent 2eb8a9e commit 616065a

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
security-events: write
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
analyze:
17+
name: Analyze (cpp)
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 120
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v4
27+
with:
28+
languages: cpp
29+
config: |
30+
paths-ignore:
31+
- libCacheSim-node
32+
33+
- name: Install build dependencies
34+
run: bash scripts/install_dependency.sh
35+
36+
- name: Autobuild
37+
uses: github/codeql-action/autobuild@v4
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v4
41+
with:
42+
category: "/language:cpp"

0 commit comments

Comments
 (0)