File tree Expand file tree Collapse file tree 5 files changed +43
-51
lines changed Expand file tree Collapse file tree 5 files changed +43
-51
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,13 @@ jobs:
22
22
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23
23
- uses : actions/checkout@v2
24
24
25
- - uses : actions/setup-java@v1
25
+ - uses : actions/setup-java@v2
26
26
with :
27
+ distribution : zulu
27
28
java-version : 17
28
29
29
- - name : Gradle cache
30
- uses : actions/cache@v2
31
- with :
32
- # Cache gradle directories
33
- path : |
34
- ~/.gradle/caches
35
- ~/.gradle/wrapper
36
- # An explicit key for restoring and saving the cache
37
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts', 'gradle.properties') }}
38
- restore-keys : |
39
- ${{ runner.os }}-gradle-
30
+ - name : Setup Gradle
31
+ uses : gradle/gradle-build-action@v2
40
32
41
33
# Compile the code
42
34
- name : Compile code
Original file line number Diff line number Diff line change @@ -21,21 +21,13 @@ jobs:
21
21
id : is-snapshot
22
22
run : grep 'version = ".*-SNAPSHOT"' build.gradle.kts
23
23
24
- - uses : actions/setup-java@v1
24
+ - uses : actions/setup-java@v2
25
25
with :
26
+ distribution : zulu
26
27
java-version : 17
27
28
28
- - name : Cache
29
- uses : actions/cache@v2
30
- with :
31
- # Cache gradle directories
32
- path : |
33
- ~/.gradle/caches
34
- ~/.gradle/wrapper
35
- # Key for restoring and saving the cache
36
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts', 'gradle.properties') }}
37
- restore-keys : |
38
- ${{ runner.os }}-gradle
29
+ - name : Setup Gradle
30
+ uses : gradle/gradle-build-action@v2
39
31
40
32
- name : Install gpg secret key
41
33
run : |
Original file line number Diff line number Diff line change @@ -17,21 +17,14 @@ jobs:
17
17
steps :
18
18
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19
19
- uses : actions/checkout@v2
20
- - uses : actions/setup-java@v1
20
+
21
+ - uses : actions/setup-java@v2
21
22
with :
23
+ distribution : zulu
22
24
java-version : 17
23
25
24
- - name : Gradle cache
25
- uses : actions/cache@v2
26
- with :
27
- # Cache gradle directories
28
- path : |
29
- ~/.gradle/caches
30
- ~/.gradle/wrapper
31
- # An explicit key for restoring and saving the cache
32
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts', 'gradle.properties') }}
33
- restore-keys : |
34
- ${{ runner.os }}-gradle-
26
+ - name : Setup Gradle
27
+ uses : gradle/gradle-build-action@v2
35
28
36
29
# Compile code
37
30
- name : Compile code
Original file line number Diff line number Diff line change 9
9
REPORT_FILE : test.json
10
10
steps :
11
11
- uses : actions/checkout@master
12
+ - uses : snyk/actions/setup@master
12
13
13
- - name : Run Snyk to check for vulnerabilities
14
- uses : snyk/actions/gradle-jdk11@master
15
- env :
16
- SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
14
+ - uses : actions/setup-java@v2
17
15
with :
18
- command : test
19
- args : --json-file-output=${{ env.REPORT_FILE }}
16
+ distribution : zulu
17
+ java-version : 17
20
18
21
- - name : Report new vulnerabilities
22
- uses : thehyve/report-vulnerability@master
23
- with :
24
- report-file : ${{ env.REPORT_FILE }}
19
+ - name : Setup Gradle
20
+ uses : gradle/gradle-build-action@v2
21
+
22
+ - name : Run Snyk
25
23
env :
26
- TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
- if : ${{ failure() }}
24
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
25
+ run : >
26
+ snyk test
27
+ --configuration-matching='^runtimeClasspath$'
28
+ --json-file-output=${{ env.REPORT_FILE }}
29
+ --org=radar-base
Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@master
11
+ - uses : snyk/actions/setup@master
12
+
13
+ - uses : actions/setup-java@v2
14
+ with :
15
+ distribution : zulu
16
+ java-version : 17
17
+
18
+ - name : Setup Gradle
19
+ uses : gradle/gradle-build-action@v2
20
+
11
21
- name : Run Snyk to check for vulnerabilities
12
- uses : snyk/actions/gradle-jdk11@master
13
22
env :
14
23
SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
15
- with :
16
- args : --severity-threshold=high
24
+ run : >
25
+ snyk test
26
+ --severity-threshold=high
27
+ --configuration-matching='^runtimeClasspath$'
28
+ --fail-on=upgradable
29
+ --org=radar-base
You can’t perform that action at this time.
0 commit comments