-
Notifications
You must be signed in to change notification settings - Fork 17
47 lines (39 loc) · 1.06 KB
/
scheduled-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 scheduled test
on:
schedule:
- cron: '0 2 * * 1'
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: snyk/actions/setup@master
with:
snyk-version: v1.1295.2
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: npm
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run Snyk to check for vulnerabilities
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: >
snyk test
--all-projects
--configuration-matching="^runtimeClasspath$"
--org=radar-base
--policy-path=.snyk
--json-file-output=snyk.json
- name: Report new vulnerabilities
uses: thehyve/report-vulnerability@master
with:
report-file: snyk.json
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ failure() }}