Skip to content

Commit ee1c0c8

Browse files
Use Snyk action to check for vulnerabilities
1 parent 2a504cd commit ee1c0c8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,19 @@ jobs:
2828
- run: npm install
2929
- run: npm run lint
3030
- run: npm run test
31-
- run: npx snyk test
3231

3332
- name: Upload test coverage report to Codecov
3433
uses: codecov/codecov-action@v1
3534
with:
3635
fail_ci_if_error: true
36+
37+
security:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v2
42+
43+
- name: Run Snyk to check for vulnerabilities
44+
uses: snyk/actions/node@master
45+
env:
46+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 commit comments

Comments
 (0)