Skip to content

Windows - All files are not getting detected in fast file walk #4998

Closed Answered by DmitriyLewen
santhosh1729 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @santhosh1729
Thanks for your report!

The files analyzed vary depending on the target.
This is because Trivy primarily categorizes targets into two groups:

  • Pre-build
  • Post-build

If the target is a pre-build project, like a code repository, Trivy will analyze files used for building, such as lock files.
On the other hand, when the target is a post-build artifact, like a container image, Trivy will analyze installed package metadata like jar's, .gemspec, binary files, and so on.

You can see table with supported languages and modes here - https://aquasecurity.github.io/trivy/v0.44/docs/scanner/vulnerability/language/#supported-languages

In your case you need to use rootfs for jar files.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AnaisUrlichs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scan/vulnerability Issues relating to vulnerability scanning
3 participants