Skip to content

Commit 5fd71b2

Browse files
Enhance CodeQL workflow with build and schedule
Added scheduled analysis and build steps for CodeQL.
1 parent 57eaae4 commit 5fd71b2

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/codeql-analyze.yml

Lines changed: 10 additions & 2 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:
@@ -23,7 +25,13 @@ jobs:
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@v2
30+
- name: Setup NuGet
31+
uses: NuGet/setup-nuget@v2
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
2937
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)