generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 41
49 lines (46 loc) · 1.43 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Snyk Java/Kotlin scan
# refresh Snyk console results for Java/Kotlin scans when merging with main
on:
push:
branches:
- main
paths:
- "prime-router/**"
- "submissions/**"
- "shared/**"
- "auth/**"
jobs:
pre_job:
name: Pre Job
runs-on: ubuntu-24.04
outputs:
has_router_change: ${{ steps.build_vars.outputs.has_router_change }}
steps:
- name: "Check out changes"
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Build vars
id: build_vars
uses: ./.github/actions/build-vars
snyk:
name: Snyk tests
runs-on: ubuntu-24.04
needs: pre_job
strategy:
fail-fast: false
matrix:
folder: [prime-router, submissions, auth, shared]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: snyk/actions/setup@b98d498629f1c368650224d6d212bf7dfa89e4bf
- name: Set up JDK 17 to generate backend coverage stats
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73
with:
java-version: "17"
distribution: "temurin"
cache: "gradle"
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808
- name: Snyk Monitor
working-directory: ${{ matrix.folder }}
run: snyk monitor --org=prime-reportstream
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}