File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 19
19
20
20
strategy :
21
21
fail-fast : false
22
- matrix :
23
- language : [ csharp ]
24
22
25
23
steps :
26
24
- name : Checkout
@@ -29,13 +27,29 @@ jobs:
29
27
- name : Initialize CodeQL
30
28
uses : github/codeql-action/init@v3
31
29
with :
32
- languages : ${{ matrix.language }}
30
+ languages : csharp
33
31
queries : +security-and-quality
34
32
35
- - name : Autobuild
36
- uses : github/codeql-action/autobuild@v3
33
+ - name : Build
34
+ run : dotnet build -c Debug
37
35
38
36
- name : Perform CodeQL Analysis
39
37
uses : github/codeql-action/analyze@v3
40
38
with :
41
- category : " /language:${{ matrix.language }}"
39
+ category : " /language:csharp"
40
+ upload : False
41
+ output : sarif-results
42
+
43
+ - name : filter-sarif
44
+ uses : advanced-security/filter-sarif@v1
45
+ with :
46
+ patterns : |
47
+ +**/*
48
+ -**/*.g.cs
49
+ input : sarif-results/csharp.sarif
50
+ output : sarif-results/csharp.sarif
51
+
52
+ - name : Upload SARIF
53
+ uses : github/codeql-action/upload-sarif@v3
54
+ with :
55
+ sarif_file : sarif-results/csharp.sarif
You can’t perform that action at this time.
0 commit comments