diff --git a/src/com/cloudogu/ces/cesbuildlib/Trivy.groovy b/src/com/cloudogu/ces/cesbuildlib/Trivy.groovy index ff83b30..6f9c754 100644 --- a/src/com/cloudogu/ces/cesbuildlib/Trivy.groovy +++ b/src/com/cloudogu/ces/cesbuildlib/Trivy.groovy @@ -42,7 +42,7 @@ class Trivy implements Serializable { // Write result to $trivyReportFilename in json format (--format json), which can be converted in the saveFormattedTrivyReport function // Exit with exit code 1 if vulnerabilities are found script.sh("mkdir -p " + trivyDirectory) - exitCode = script.sh(script: "trivy image --exit-code 1 exit-on-eol 1 --format ${TrivyScanFormat.JSON} -o ${trivyReportFilename} --severity ${severityLevel} ${additionalFlags} ${imageName}", returnStatus: true) + exitCode = script.sh(script: "trivy image --exit-code 1 --exit-on-eol 1 --format ${TrivyScanFormat.JSON} -o ${trivyReportFilename} --severity ${severityLevel} ${additionalFlags} ${imageName}", returnStatus: true) } switch (exitCode) { case 0: