Scanning gradle.lockfile in image #8066
Unanswered
marko-majcenic
asked this question in
Q&A
Replies: 1 comment
-
Hello @marko-majcenic Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm wondering, is it possible to also scan the gradle.lockfile that is located in Docker image?
For example, I have a gradle.lockfile with simple content:
When I run
trivy fs gradle.lockfile
, it correctly finds vulnerabilities.But, when I copy lockfile to an image, using Dockerfile (
docker build -t myimg:latest .
), for example:and run
trivy image myimg:latest
, no vulnerabilities are found.For context, what am I doing is that I am actually building a GraalVM native image, but I would like to have Trivy scans in CI/CD pipeline also scan app for vulnerabilities, so I am also adding gradle.lockfile to the image, for that purpose. I also tried using CycloneDX JSON file, but also had no luck. This actually works with JAR-s, so JAR scanning works, but in this case, there is no JAR archive.
Target
Container Image
Scanner
Vulnerability
Output Format
None
Mode
None
Operating System
No response
Version
Beta Was this translation helpful? Give feedback.
All reactions