Skip to content

Commit 06c195a

Browse files
authored
fix: snyk action (#550)
* Update test.yml * Update test.yml * Update test.yml * Create test.yml * Update test.yml * Update test.yml * Update test.yml
1 parent cb648fd commit 06c195a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,21 @@ on:
1010
- main
1111

1212
jobs:
13-
# security:
14-
# runs-on: ubuntu-latest
15-
# steps:
16-
# - uses: actions/checkout@v1
17-
# - name: Run Snyk to check for vulnerabilities
18-
# uses: snyk/actions/node@master
19-
# env:
20-
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
21-
# with:
22-
# args: --severity-threshold=high
13+
security:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Run Snyk to check for vulnerabilities
18+
run: npx snyk test --severity-threshold=high
19+
env:
20+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2321
test:
2422
runs-on: ubuntu-latest
2523
strategy:
2624
matrix:
2725
node-version: [12.x, 14.x]
2826
steps:
29-
- uses: actions/checkout@v1
27+
- uses: actions/checkout@v2
3028
- name: Use Node.js ${{ matrix.node-version }}
3129
uses: actions/setup-node@v1
3230
with:

0 commit comments

Comments
 (0)