-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 863 Bytes
/
snyk.yml
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
name: Snyk
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
schedule:
- cron: '0 6 * * 5'
jobs:
security:
name: Security
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Snyk Test
uses: snyk/[email protected]
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --yarn-workspaces --sarif-file-output=snyk.sarif
- name: Snyk Monitor
uses: snyk/[email protected]
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor
args: --yarn-workspaces
- name: Upload result
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif