Skip to content

Commit 19f41bc

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github-Actions] Snyk Open Source. Modified. Sarif output enabled.
1 parent 5ef7ec7 commit 19f41bc

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/dotnet-snyk.yml renamed to .github/workflows/snyk-code.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
---
77

8-
name: .NET Snyk Code analysis
8+
name: Snyk Code analysis (.NET)
99

1010
on: # yamllint disable-line rule:truthy
1111
push:
@@ -19,16 +19,12 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@master
2121
- 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
2822
- name: Run Snyk to check for vulnerabilities
2923
run: >
30-
snyk test
31-
algorithm-exercises-csharp/
32-
algorithm-exercises-csharp-test/
24+
snyk code test --sarif-file-output=snyk-code.sarif
3325
env:
3426
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'

0 commit comments

Comments
 (0)