Skip to content

Commit b4b2df7

Browse files
Move Snyk test to security workflow
1 parent 5bce623 commit b4b2df7

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/security-scan.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,18 @@ jobs:
3434

3535
- name: Perform CodeQL Analysis
3636
uses: github/codeql-action/analyze@v1
37+
38+
- name: Setup Snyk
39+
uses: snyk/actions/setup@master
40+
id: snyk
41+
with:
42+
snyk-version: latest
43+
44+
- name: Snyk version
45+
run: echo "${{ steps.snyk.outputs.version }}"
46+
47+
- name: Run Snyk to check for vulnerabilities
48+
if: ${{ github.actor != 'dependabot[bot]' }}
49+
uses: snyk/actions/node@master
50+
env:
51+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

.github/workflows/tests.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,3 @@ jobs:
4141
uses: codecov/codecov-action@v2.1.0
4242
with:
4343
fail_ci_if_error: true
44-
45-
- name: Setup Snyk
46-
uses: snyk/actions/setup@master
47-
id: snyk
48-
with:
49-
snyk-version: latest
50-
- name: Snyk version
51-
run: echo "${{ steps.snyk.outputs.version }}"
52-
- name: Run Snyk to check for vulnerabilities
53-
if: ${{ github.actor != 'dependabot[bot]' }}
54-
uses: snyk/actions/node@master
55-
env:
56-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 commit comments

Comments
 (0)