Skip to content

Commit

Permalink
Include NVD API Token
Browse files Browse the repository at this point in the history
  • Loading branch information
turing85 authored and dependabot[bot] committed Mar 8, 2024
1 parent e86f230 commit 81212fa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/actions/owasp-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
description: The Java version to use
default: '17'
required: true
nvd-api-key:
description: The API key for the NVD database, used by the dependency-check scan plugin
required: true

runs:
using: composite
Expand Down Expand Up @@ -58,6 +61,7 @@ runs:
--batch-mode \
--color always \
--define ci-owasp \
--define nvdApiKey=${{ inputs.nvd-api-key }} \
package
- name: Upload OWASP Scan Report
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/populate-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
description: The Java version to use
default: '17'
required: true
nvd-api-key:
description: The API key for the NVD database, used by the dependency-check scan plugin
required: true


runs:
Expand All @@ -39,6 +42,7 @@ runs:
--batch-mode \
--color always \
--define ci-populate-cache \
--define nvdApiKey=${{ inputs.nvd-api-key }} \
verify \
quarkus:go-offline \
de.qaware.maven:go-offline-maven-plugin:resolve-dependencies
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
graalvm-distribution: ${{ env.GRAALVM_DISTRIBUTION }}
graalvm-version: ${{ env.GRAALVM_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
nvd-api-key: ${{ secrets.NVD_API_KEY }}

build-and-test-jvm:
name: Build and Test (JVM)
Expand Down Expand Up @@ -252,4 +253,5 @@ jobs:
with:
graalvm-distribution: ${{ env.GRAALVM_DISTRIBUTION }}
graalvm-version: ${{ env.GRAALVM_DISTRIBUTION }}-${{ env.MANDREL_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
nvd-api-key: ${{ secrets.NVD_API_KEY }}
4 changes: 3 additions & 1 deletion .github/workflows/nightly-cve-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
graalvm-distribution: ${{ env.GRAALVM_DISTRIBUTION }}
graalvm-version: ${{ env.GRAALVM_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
nvd-api-key: ${{ secrets.NVD_API_KEY }}

owasp:
name: OWASP Scan
Expand All @@ -47,4 +48,5 @@ jobs:
download-artifacts: false
graalvm-distribution: ${{ env.GRAALVM_DISTRIBUTION }}
graalvm-version: ${{ env.GRAALVM_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
nvd-api-key: ${{ secrets.NVD_API_KEY }}

0 comments on commit 81212fa

Please sign in to comment.