Skip to content

Commit

Permalink
Fail on unsupported scan format; #136
Browse files Browse the repository at this point in the history
  • Loading branch information
robertauer committed Nov 25, 2024
1 parent 096a0aa commit c933342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/cloudogu/ces/cesbuildlib/Trivy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class Trivy implements Serializable {
fileExtension = "txt"
break
default:
// TODO: Do nothing? Throw exception? idk
break
script.error("This format did not match the supported formats: " + format)
return
}
docker.image("aquasec/trivy:${trivyVersion}")
.inside("-v ${script.env.WORKSPACE}/.trivy/.cache:/root/.cache/") {
Expand Down

0 comments on commit c933342

Please sign in to comment.