File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a .NET project
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3
+
4
+ name : .NET Snyk Code analysis
5
+
6
+ on :
7
+ push :
8
+ branches : [ main, develop, feature/* ]
9
+ pull_request :
10
+ branches : [ main ]
11
+
12
+ jobs :
13
+ security :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@master
17
+ - uses : snyk/actions/setup@master
18
+ - name : Setup .NET
19
+ uses : actions/setup-dotnet@v4
20
+ with :
21
+ dotnet-version : 8.0.x
22
+ - name : Restore dependencies
23
+ run : dotnet restore algorithm-exercises-csharp.sln
24
+ - name : Run Snyk to check for vulnerabilities
25
+ run : snyk test algorithm-exercises-csharp/ algorithm-exercises-csharp-test/
26
+ env :
27
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
You can’t perform that action at this time.
0 commit comments