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