File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
---
7
7
8
- name : Snyk Code analysis (.NET)
8
+ name : .NET Snyk Code analysis
9
9
10
10
on : # yamllint disable-line rule:truthy
11
11
push :
@@ -23,12 +23,23 @@ jobs:
23
23
steps :
24
24
- uses : actions/checkout@master
25
25
- uses : snyk/actions/setup@master
26
+ - name : Setup .NET
27
+ uses : actions/setup-dotnet@v4
28
+ with :
29
+ dotnet-version : 8.0.x
30
+ - name : Restore dependencies
31
+ run : dotnet restore algorithm-exercises-csharp.sln
26
32
- name : Run Snyk to check for vulnerabilities
33
+ continue-on-error : true # To make sure that SARIF upload gets called
27
34
run : >
28
- snyk code test --sarif-file-output=snyk-code.sarif
35
+ snyk test
36
+ algorithm-exercises-csharp/
37
+ algorithm-exercises-csharp-base/
38
+ algorithm-exercises-csharp-test/
39
+ --sarif-file-output=snyk-code.sarif
29
40
env :
30
41
SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
31
42
- name : Upload result to GitHub Code Scanning
32
43
uses : github/codeql-action/upload-sarif@v3
33
44
with :
34
- sarif_file : ' snyk-code.sarif'
45
+ sarif_file : snyk-code.sarif
You can’t perform that action at this time.
0 commit comments