Skip to content

Commit

Permalink
adds vulnerability scan api key as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
zecarrera committed Jul 8, 2024
1 parent 720cfed commit 0c35575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/azDevOps/azure/azure-pipelines-javaspring-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ stages:
docker_build_container: "${{ variables.docker_java_image }}"
# Vulnerability Scanning
vulnerability_scan: "${{ variables.vulnerability_scan }}"
vulnerability_scan_api_key: "$(VULNERABILITY_SCAN_API_KEY)"
vulnerability_scan_fail_build_on_detection: "${{ variables.vulnerability_scan_fail_build_on_detection }}"
project_type: "${{ variables.java_project_type }}"

Expand All @@ -245,6 +246,7 @@ stages:
docker_build_container: "${{ variables.docker_java_image }}"
# Vulnerability Scan
vulnerability_scan: "${{ variables.vulnerability_scan }}"
vulnerability_scan_api_key: "$(VULNERABILITY_SCAN_API_KEY)"
vulnerability_scan_fail_build_on_detection: "${{ variables.vulnerability_scan_fail_build_on_detection }}"
project_type: "${{ variables.functional_test_project_type }}"

Expand Down
2 changes: 2 additions & 0 deletions build/azDevOps/azure/templates/steps/build/build-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ parameters:
docker_build_container: ""
# Vulnerability Scanning
vulnerability_scan: true
vulnerability_scan_api_key: ""
vulnerability_scan_fail_build_on_detection: true
project_type: ""

Expand Down Expand Up @@ -68,6 +69,7 @@ steps:
inputs:
filePath: "${{ parameters.pipeline_scripts_directory }}/test-maven-owasp-dependency-check.bash"
arguments: >
-X "${{ parameters.vulnerability_scan_api_key }}"
-Y "${{ parameters.vulnerability_scan_fail_build_on_detection }}"
-Z "${{ parameters.maven_cache_directory }}"
workingDirectory: "${{ parameters.project_root_dir }}"
Expand Down

0 comments on commit 0c35575

Please sign in to comment.