diff --git a/.automation/trivy-security-scan.sh b/.automation/trivy-security-scan.sh index 43f5d2cd..8de13c6d 100755 --- a/.automation/trivy-security-scan.sh +++ b/.automation/trivy-security-scan.sh @@ -31,8 +31,9 @@ RunScan() { ########################### echo "" echo "-------------------------------------------------------" - echo " Running scan on local code base..." - RUN_CMD=$("${GITHUB_WORKSPACE}/trivy" fs --format template --template @"${GITHUB_WORKSPACE}/${TEMPLATE_NAME}" -o "${REPORT_NAME}" --exit-code 1 "${GITHUB_WORKSPACE}" 2>&1) + echo "Running scan on local code base..." + echo "Running command:[\"${GITHUB_WORKSPACE}/trivy\" fs --format template --template @\"${GITHUB_WORKSPACE}/${TEMPLATE_NAME}\" -o \"${REPORT_NAME}\" --severity HIGH,CRITICAL --exit-code 1 \"${GITHUB_WORKSPACE}\" 2>&1]" + RUN_CMD=$("${GITHUB_WORKSPACE}/trivy" fs --format template --template @"${GITHUB_WORKSPACE}/${TEMPLATE_NAME}" -o "${REPORT_NAME}" --severity HIGH,CRITICAL --exit-code 1 "${GITHUB_WORKSPACE}" 2>&1) ####################### # Load the error code #