Skip to content

Commit 39645d4

Browse files
Enhance CodeQL workflow with build and schedule (#162)
* Added scheduled analysis and build steps for CodeQL. * Updated CodeQL workflow to use newer action versions.
1 parent 57eaae4 commit 39645d4

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/codeql-analyze.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches: [ "main" ]
55
pull_request:
66
branches: [ "main" ]
7+
schedule:
8+
- cron: '25 14 * * 1'
79
workflow_dispatch:
810
jobs:
911
analyze:
@@ -17,13 +19,19 @@ jobs:
1719
fail-fast: false
1820
steps:
1921
- name: Checkout repository
20-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2123
- name: Initialize CodeQL
22-
uses: github/codeql-action/init@v3
24+
uses: github/codeql-action/init@v4
2325
with:
2426
languages: 'csharp'
2527
queries: security-extended,security-and-quality
26-
- name: Autobuild
27-
uses: github/codeql-action/autobuild@v3
28+
- name: Add msbuild to PATH
29+
uses: microsoft/setup-msbuild@v3
30+
- name: Setup NuGet
31+
uses: NuGet/setup-nuget@v3
32+
- name: Restore NuGet Packages
33+
run: nuget restore SQLCallStackResolver.sln
34+
- name: Build
35+
run: msbuild SQLCallStackResolver.sln /p:Configuration=Release
2836
- name: Perform CodeQL Analysis
29-
uses: github/codeql-action/analyze@v3
37+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)