-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) 路 1015 Bytes
/
Copy pathsnyk_sca_scan.yml
File metadata and controls
35 lines (32 loc) 路 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Snyk Code Security
on:
pull_request:
branches:
- '**'
push:
branches:
- main
paths-ignore:
- '**/*.md'
jobs:
open-source:
name: '馃敀 Open Source Scan'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Snyk test to check for known vulnerabilities in software supply chain
uses: snyk/actions/node@0e928f3e9ae859e2b95ac2b89af55d7b6434244d
env:
SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
with:
command: test
# include devDependencies to deps list for Snyk dep-graph
args: --dev --severity-threshold=medium
- name: Run Snyk monitor to upload the latest snapshot
uses: snyk/actions/node@0e928f3e9ae859e2b95ac2b89af55d7b6434244d
env:
SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
with:
command: monitor
# include devDependencies to deps list for Snyk dep-graph
args: --dev --severity-threshold=medium