Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Maven search #61

Open
ghost opened this issue Oct 8, 2021 · 1 comment
Open

Configure Maven search #61

ghost opened this issue Oct 8, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 8, 2021

Can we configure the URL of the Maven repository in Trivy?

It looks like it's set here

baseURL = "https://search.maven.org/solrsearch/select"

I ask for two reasons

  • Maven is rate limited, using this tool on a CI server means that queries start getting blocked
  • Many people/organisations have a local cache of Maven which would be faster to access from a CI server

Ideally I would like to see a CLI flag for the Trivy tool to set the an alternative repository search tool, e.g. Nexus or Artifactory.

The OWASP dependency scanning tool has the same functionality, I don't know if their implementation is useful as a reference point

https://owasp.org/www-project-dependency-check/

@scottcunningham
Copy link

I would also be interested in being able to configure this. I'm trying to run Trivy in an air-gapped environment and it's getting stuck retrying these connections forever.

Ideally we could point the checks to an internal mirror to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant