From e0dbec82a96be1a62e66cc33652eb1cfd066d796 Mon Sep 17 00:00:00 2001 From: Fabian Widmann Date: Fri, 23 Jul 2021 09:55:15 +0200 Subject: [PATCH] feat(cve): try to fix unknown operand --- container-scan.gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container-scan.gitlab-ci.yml b/container-scan.gitlab-ci.yml index dd92554..d58a9fc 100644 --- a/container-scan.gitlab-ci.yml +++ b/container-scan.gitlab-ci.yml @@ -37,7 +37,7 @@ - /kaniko/executor --context $CONTEXT_LOCATION --dockerfile $DOCKERFILE_LOCATION --cache-dir cache/image --tarPath image.tar --no-push --destination image --skip-tls-verify - echo $IGNORE_UNFIXABLE - | - if [[ $IGNORE_UNFIXED = "true" ]] ; then + if [[ $IGNORE_UNFIXED == "true" ]] ; then echo "detect issues, ignore unfixed issues"; ./trivy --cache-dir .trivycache/ --ignore-unfixed --exit-code 0 --cache-dir .trivycache/ --severity HIGH,CRITICAL --no-progress --format template --template "@contrib/junit.tpl" -o junit-report.xml --input image.tar ./trivy --cache-dir .trivycache/ --ignore-unfixed --exit-code $EXITCODE --severity HIGH,CRITICAL --no-progress --auto-refresh --input image.tar