File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 3535 java-version : 21
3636 - name : Dependency Check with Maven
3737 working-directory : xml
38+ env :
39+ NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
3840 run : |
3941 # shellcheck disable=SC2086
40- ./mvnw ${MAVEN_CLI_OPTS} dependency-check:aggregate
42+ ./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.NVDApiKey=${NVD_API_KEY} dependency-check:aggregate
4143 - name : Upload artifacts
4244 uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
4345 with :
Original file line number Diff line number Diff line change 4848 <configuration >
4949 <failBuildOnCVSS >${dependencyCheck.threshold} </failBuildOnCVSS >
5050 <failOnError >true</failOnError >
51+ <nvdApiKey >${dependencyCheck.NVDApiKey} </nvdApiKey >
5152 <skip >${dependencyCheck.skip} </skip >
5253 </configuration >
5354 <executions >
You can’t perform that action at this time.
0 commit comments