Skip to content

Commit 986d5b0

Browse files
committed
Github Actions: Add CodeQL workflow
1 parent ad5594f commit 986d5b0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master, develop ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '23 12 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: windows-2025
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'csharp' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Setup MSBuild
35+
uses: microsoft/[email protected]
36+
37+
- name: Restore dependencies
38+
run: nuget restore pusher-dotnet-client.sln
39+
40+
- name: Build
41+
run: msbuild /p:deterministic=true /p:msbuildArchitecture=x64 /p:configuration=Release pusher-dotnet-client.sln
42+
43+
- name: Perform CodeQL Analysis
44+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)