commit 04a67b50b78ae842a5009ab93ae7d6bf60b2371d parent 7d6fa9ad8e056b73f059cfb3ddffb3fb3749dd47 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Sat, 3 May 2025 23:22:47 +0200 fix(trivy): swap argument order Diffstat:
M | src/Trivy.groovy | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Trivy.groovy b/src/Trivy.groovy @@ -17,7 +17,7 @@ class Trivy implements Serializable { script.stage(scanners) { script.docker.image(trivyImage) .inside('-u root --entrypoint=""') { - script.sh "trivy fs . --scanners ${scanners}" + script.sh "trivy fs --scanners ${scanners} ." } } } @@ -29,7 +29,7 @@ class Trivy implements Serializable { script.docker.image(trivyImage) .inside('-u root --entrypoint=""') { // the SBOM can include the vulnerability list - script.sh "trivy fs . --scanners vuln --format cyclonedx --output ${file}" + script.sh "trivy fs --scanners vuln --format cyclonedx --output ${file} ." } } }