Replies: 3 comments 4 replies
|
Hello @AB-xdev For artifacts that are not in the local cache — Trivy downloads them from Maven Central to get the full list of dependencies. It looks like Maven has tightened their rate limits (https://central.sonatype.org/faq/429-error/), which is why you are seeing this error. Regards, Dmitriy |
|
I just ran into the 429 error and the message that you added recently. The recommended action is to populate the local cache first, right? I don't even have maven installed. I assume Trivy has it built in? From what I can tell Trivy is calling it because I'm running ApacheDirectoryStudio, Jetbrains IDEs, and have a java git repo or two checked out that are not being worked on. I really don't want to install maven just to get past this. Do I have to exclude every single directory with something Java in it before I can get a scan to complete? Or is there a way to just skip maven stuff? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Trivy frequently runs into the following (hidden) error when scanning a
pom.xmland resolving dependencies:Desired Behavior
Retry on 429
Actual Behavior
Reproduction Steps
1. Download a Maven project, e.g. https://micronaut.io/launch/ 2. Run a Trivy scan using: `trivy -debug fs <pathToProject>`Target
Filesystem
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
Docker
Version
Checklist
trivy clean --allAll reactions