We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0a4215 commit 8f70fa3Copy full SHA for 8f70fa3
.github/workflows/snyk.yml
@@ -0,0 +1,36 @@
1
+name: snyk
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ security:
11
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
16
+ - uses: actions/checkout@v4
17
18
+ - name: Setup dotnet
19
+ uses: actions/setup-dotnet@v4
20
+ with:
21
+ dotnet-version: 9.0.x
22
23
+ - name: Restore dependencies
24
+ run: dotnet restore
25
26
+ - name: Install Snyk
27
+ run: npm install -g snyk
28
29
+ - name: Authenticate
30
+ run: snyk auth ${{ secrets.SNYK_TOKEN }}
31
32
+ - name: Test
33
+ run: snyk test --all-projects
34
35
+ - name: Monitor
36
+ run: snyk monitor
0 commit comments