Skip to content

Commit bb51562

Browse files
committed
Add CodeQL workflow
1 parent a6154eb commit bb51562

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
with:
29+
submodules: true
30+
persist-credentials: false
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
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@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
40+
41+
- name: Set up NASM
42+
uses: ilammy/setup-nasm@72793074d3c8cdda771dba85f6deafe00623038b # v1.5.2
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@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
52+
with:
53+
category: "/language:cpp"

0 commit comments

Comments
 (0)