Closed oauwils closed 2 years ago
Hello @oauwils Thanks for your report!
I can't reproduce your problem.
Can you try scanning with --security-checks vuln
flag, or specify which file(s) scan returns error?
Regards, Dmitriy
pom.xml scanning might be related. Evaluating properties may lead to infinite loop.
Hello @DmitriyLewen and @knqyf263
Thanks for your replies, the files scanned are pom.xml. I tried with --security-checks vuln
, the result is the same.
I did some tests today, and the problem seems to come from dependencies hosted on private repository (self-hosted nexus in this case). Would it be possible to specify to trivy not to analyze (or skip) these private dependencies ?
Description
When running trivy over a maven project with submodules and many dependencies, with the command
trivy fs .
, trivy uses all available memory and crash with the error :What did you expect to happen?
Trivy should retrieve dependencies and vulnerabilities for the whole project (submodules included)
What happened instead?
Trivy uses all memory (RAM + swap) on the system and stop with the goroutine error
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
dmesg output :