File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 run : |
4545 set -euo pipefail
4646 # Do not set IFS=$'\n\t', breaks ${MAVEN_CLI_OPTS}
47+ # The NVD API key is read from the NVD_API_KEY environment variable by
48+ # the pom (dependencyCheck.NVDApiKey default), so the secret is never
49+ # passed on the command line where it would be visible in the process
50+ # list.
4751 # shellcheck disable=SC2086 # [Double quote to prevent globbing and word splitting]: splitting is desired for MAVEN_CLI_OPTS
48- ./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.NVDApiKey=${NVD_API_KEY} dependency-check:aggregate
52+ ./mvnw ${MAVEN_CLI_OPTS} dependency-check:aggregate
4953 - name : Clean up
5054 working-directory : xml
5155 shell : bash
Original file line number Diff line number Diff line change 1212 <dependencyCheck .version>12.2.2</dependencyCheck .version>
1313 <dependencyCheck .skip>false</dependencyCheck .skip>
1414 <dependencyCheck .threshold>7</dependencyCheck .threshold>
15+ <!-- Read the NVD API key from the environment so the secret is never
16+ passed on the command line (visible in the process list). Can still
17+ be overridden with -DdependencyCheck.NVDApiKey=... if needed. -->
18+ <dependencyCheck .NVDApiKey>${env.NVD_API_KEY} </dependencyCheck .NVDApiKey>
1519 <saxon .version>13.0</saxon .version>
1620 </properties >
1721 <build >
You can’t perform that action at this time.
0 commit comments