-
-
Notifications
You must be signed in to change notification settings - Fork 281
46 lines (36 loc) · 1.02 KB
/
codeql.yml
File metadata and controls
46 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Scan code using CodeQL"
on:
push:
branches: [ "main", "develop" ]
paths: [ "src/**" ]
pull_request:
branches: [ "main", "develop" ]
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze (CodeQL)
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
shell: pwsh
run: nuget restore src\WinMemoryCleaner.sln
- name: Build solution
shell: pwsh
run: msbuild src\WinMemoryCleaner.sln /m /p:Configuration=Release /p:Platform="Any CPU" /p:UseSharedCompilation=false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4