Skip to content

Commit c145407

Browse files
committed
Add CodeQL workflow
1 parent 14bfa6d commit c145407

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- "**"
7+
- "!dependabot/**"
58
pull_request:
69
workflow_dispatch:
710

.github/workflows/codeql.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
- "!dependabot/**"
8+
pull_request:
9+
branches:
10+
- "**"
11+
- "!dependabot/**"
12+
schedule:
13+
- cron: "0 0 * * 0"
14+
workflow_dispatch:
15+
16+
jobs:
17+
analyze:
18+
name: Analyze
19+
runs-on: windows-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
25+
steps:
26+
- name: Clone repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: true
30+
persist-credentials: false
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v3
34+
with:
35+
languages: "cpp"
36+
queries: security-extended,security-and-quality
37+
38+
- name: Add MSVC to PATH
39+
uses: ilammy/msvc-dev-cmd@v1
40+
41+
- name: Set up NASM
42+
uses: ilammy/setup-nasm@v1
43+
with:
44+
version: 2.16.03
45+
46+
- name: Build
47+
run: CALL "build.bat"
48+
shell: cmd
49+
50+
- name: Perform CodeQL Analysis
51+
uses: github/codeql-action/analyze@v3
52+
with:
53+
category: "/language:cpp"

0 commit comments

Comments
 (0)