-
Notifications
You must be signed in to change notification settings - Fork 875
47 lines (39 loc) · 1.25 KB
/
snyk-cli-scan.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
name: 🔬 Snyk cli SCA
on:
push:
branches: [ 4.x ]
pull_request:
branches: [ 4.x ]
workflow_dispatch:
env:
SNYK_SEVERITY_THRESHOLD_LEVEL: high
jobs:
snyk-cli-scan:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: prepare for snyk scan
uses: datastax/shared-github-actions/actions/snyk-prepare@main
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
cache: maven
- name: run maven install prepare for snyk
run: |
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true
- name: snyk scan java
uses: datastax/shared-github-actions/actions/snyk-scan-java@main
with:
directories: .
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
extra-snyk-options: "-DskipTests -Dmaven.javadoc.skip=true"
- name: Snyk scan result
uses: datastax/shared-github-actions/actions/snyk-process-scan-results@main
with:
gh_repo_token: ${{ secrets.GITHUB_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}