From b951bb2fad68bae824d0210678127232cbb8d3d0 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Thu, 18 Feb 2021 10:21:53 -0600 Subject: [PATCH] only show high and critical (#1229) * only show high and critical * only show high and critical * only show high and critical --- .automation/trivy-security-scan.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 #