File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
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 :
@@ -19,16 +19,12 @@ jobs:
19
19
steps :
20
20
- uses : actions/checkout@master
21
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
22
- name : Run Snyk to check for vulnerabilities
29
23
run : >
30
- snyk test
31
- algorithm-exercises-csharp/
32
- algorithm-exercises-csharp-test/
24
+ snyk code test --sarif-file-output=snyk-code.sarif
33
25
env :
34
26
SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
27
+ - name : Upload result to GitHub Code Scanning
28
+ uses : github/codeql-action/upload-sarif@v3
29
+ with :
30
+ sarif_file : ' snyk-code.sarif'
You can’t perform that action at this time.
0 commit comments