This commit is contained in:
@@ -26,7 +26,10 @@ steps:
|
|||||||
- name: dependency-check
|
- name: dependency-check
|
||||||
image: maven:3-eclipse-temurin-21
|
image: maven:3-eclipse-temurin-21
|
||||||
commands:
|
commands:
|
||||||
- mvn dependency-check:check --no-transfer-progress -B -V
|
- mvn dependency-check:check --no-transfer-progress -B -V -DnvdApiKey=$NVD_API_KEY
|
||||||
|
environment:
|
||||||
|
NVD_API_KEY:
|
||||||
|
from_secret: nvd_api_key
|
||||||
|
|
||||||
# run code analysis
|
# run code analysis
|
||||||
- name: code-analysis
|
- name: code-analysis
|
||||||
|
1
pom.xml
1
pom.xml
@@ -76,6 +76,7 @@
|
|||||||
<version>12.1.0</version>
|
<version>12.1.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<failBuildOnCVSS>8</failBuildOnCVSS>
|
<failBuildOnCVSS>8</failBuildOnCVSS>
|
||||||
|
<nvdApiKey>${nvdApiKey}</nvdApiKey>
|
||||||
<formats>
|
<formats>
|
||||||
<format>html</format>
|
<format>html</format>
|
||||||
<format>json</format>
|
<format>json</format>
|
||||||
|
Reference in New Issue
Block a user