Skip to content

Commit 8f70fa3

Browse files
committed
👷
1 parent c0a4215 commit 8f70fa3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/snyk.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: snyk
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
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

Comments
 (0)