Skip to content

Commit fd48224

Browse files
committed
ci(dependency-check): pass NVD API key as env variable
1 parent 8be4eca commit fd48224

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
<dependencyCheck.version>12.2.2</dependencyCheck.version>
6868
<dependencyCheck.skip>false</dependencyCheck.skip>
6969
<dependencyCheck.threshold>7</dependencyCheck.threshold>
70+
<!-- Read the NVD API key from the environment so the secret is never
71+
passed on the command line (visible in the process list). Can still
72+
be overridden with -DdependencyCheck.NVDApiKey=... if needed. -->
73+
<dependencyCheck.NVDApiKey>${env.NVD_API_KEY}</dependencyCheck.NVDApiKey>
7074
</properties>
7175
<dependencies>
7276
<dependency>

0 commit comments

Comments
 (0)