Skip to content

Commit 414fb1d

Browse files
authored
Update codeql.yml
Writing sarif file for results of code scan.
1 parent 856cd0f commit 414fb1d

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches: [ "master" ]
77
pull_request:
88
branches: [ "master" ]
9-
schedule:
10-
- cron: '41 2 * * 6'
119

1210
permissions:
1311
contents: read
@@ -16,26 +14,28 @@ permissions:
1614

1715
jobs:
1816
analyze:
19-
name: Analyze (c-cpp)
2017
runs-on: windows-latest
2118

2219
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
2521

26-
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v4
22+
- uses: github/codeql-action/init@v4
2823
with:
2924
languages: c-cpp
3025
build-mode: manual
3126

32-
- name: Configure CMake (MSVC)
33-
run: cmake -S . -B build-temp
27+
- run: cmake -S . -B build-temp
3428

35-
- name: Build DLL
36-
run: cmake --build build-temp --config Release --target AutoDaveSave --parallel --clean-first
29+
- run: cmake --build build-temp --config Release --target AutoDaveSave --parallel --clean-first
3730

38-
- name: Perform CodeQL Analysis
31+
- name: Perform CodeQL Analysis (generate SARIF)
3932
uses: github/codeql-action/analyze@v4
4033
with:
4134
category: "/language:c-cpp"
35+
output: sarif-results
36+
37+
- name: Upload SARIF artifact
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: codeql-sarif
41+
path: sarif-results/*.sarif

0 commit comments

Comments
 (0)