Skip to content

Commit

Permalink
Fix parameter call
Browse files Browse the repository at this point in the history
  • Loading branch information
robertauer committed Nov 21, 2024
1 parent 0341304 commit 6d6dbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/cloudogu/ces/cesbuildlib/Trivy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6d6dbb7

Please sign in to comment.