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