File tree 4 files changed +18
-8
lines changed
4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 67
67
with :
68
68
submodules : true
69
69
- name : Set up JDK ${{ matrix.java }}
70
- uses : actions/setup-java@v2
70
+ uses : actions/setup-java@v4
71
71
with :
72
72
java-version : ${{ matrix.java }}
73
73
distribution : ' adopt'
@@ -160,7 +160,7 @@ jobs:
160
160
version : ["3.1.9", "3.2.0"]
161
161
steps :
162
162
- name : Set up JDK 8
163
- uses : actions/setup-java@v2
163
+ uses : actions/setup-java@v4
164
164
with :
165
165
java-version : 8
166
166
distribution : ' adopt'
Original file line number Diff line number Diff line change 22
22
branches :
23
23
- ' [0-9]+.[0-9]+.[0-9]+-prepare'
24
24
- ' [0-9]+.[0-9]+.[0-9]+-release'
25
- pull_request :
25
+ pull_request_target :
26
26
paths :
27
27
- ' **/pom.xml'
28
28
env :
29
29
MAVEN_OPTS : -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3
30
30
31
31
jobs :
32
32
build :
33
+ permissions :
34
+ contents : read
35
+ pull-requests : write
33
36
runs-on : ubuntu-latest
34
37
timeout-minutes : 120
35
38
steps :
36
39
- uses : actions/checkout@v4
37
40
with :
38
41
submodules : true
39
42
- name : Set up JDK 8
40
- uses : actions/setup-java@v2
43
+ uses : actions/setup-java@v4
41
44
with :
42
45
java-version : 8
43
46
distribution : ' adopt'
44
47
- name : Run OWASP Dependency Check
45
- run : ./mvnw -B clean install verify dependency-check:check -DskipDepCheck=false -Dmaven.test.skip=true -Dspotless.skip=true
48
+ run : |
49
+ ./mvnw -B clean install verify dependency-check:check \
50
+ -DskipDepCheck=false \
51
+ -Dmaven.test.skip=true \
52
+ -Dspotless.skip=true
53
+ env :
54
+ NIST_NVD_API_KEY : ${{ secrets.NIST_NVD_API_KEY }}
46
55
- name : Upload report
47
56
uses : actions/upload-artifact@v4
48
57
if : ${{ cancelled() || failure() }}
Original file line number Diff line number Diff line change 66
66
with :
67
67
token : ${{ secrets.GITHUB_TOKEN }}
68
68
- name : Set up JDK ${{ matrix.java }}
69
- uses : actions/setup-java@v2
69
+ uses : actions/setup-java@v4
70
70
with :
71
71
java-version : ${{ matrix.java }}
72
72
distribution : ' adopt'
95
95
restore-keys : ${{ runner.os }}-maven-
96
96
# Set up JDK 17 for SonarCloud.
97
97
- name : Set up JDK 17
98
- uses : actions/setup-java@v2
98
+ uses : actions/setup-java@v4
99
99
with :
100
100
java-version : 17
101
101
distribution : ' adopt'
Original file line number Diff line number Diff line change 86
86
<jacoco .skip>false</jacoco .skip>
87
87
<maven-jar-plugin .version>3.2.0</maven-jar-plugin .version>
88
88
<exec-maven-plugin .version>3.0.0</exec-maven-plugin .version>
89
- <owasp-dependency-check-maven .version>9.2.0 </owasp-dependency-check-maven .version>
89
+ <owasp-dependency-check-maven .version>10.0.2 </owasp-dependency-check-maven .version>
90
90
<lombok .version>1.18.20</lombok .version>
91
91
<awaitility .version>4.2.0</awaitility .version>
92
92
<truth .version>1.4.2</truth .version>
545
545
<skipRuntimeScope >true</skipRuntimeScope >
546
546
<skipSystemScope >true</skipSystemScope >
547
547
<failBuildOnCVSS >7</failBuildOnCVSS >
548
+ <nvdApiKeyEnvironmentVariable >NIST_NVD_API_KEY</nvdApiKeyEnvironmentVariable >
548
549
</configuration >
549
550
<executions >
550
551
<execution >
You can’t perform that action at this time.
0 commit comments