-
-
Notifications
You must be signed in to change notification settings - Fork 217
47 lines (40 loc) · 1.08 KB
/
snyk.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
name: Snyk Security Scan
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
snyk-security-scan:
runs-on: ubuntu-latest
name: Snyk Security Scan
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: latest
- name: Cache PNPM dependencies
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Cache Snyk cache folder
uses: actions/cache@v4
with:
path: ~/.cache/snyk
key: ${{ runner.os }}-snyk-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-snyk-
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_SECRET }}
with:
args: --severity-threshold=high