You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running it in a gitlab pipeline and the output is this:
22047 [INFO] Checking for updates
22057 [WARNING] An NVD API Key was not provided - it is highly recommended to use an NVD API key as the update can take a VERY long time without an API Key
60332 [INFO] NVD API has 280,241 records in this update
And the update takes forever. I cannot wait 3-4 hours, also because it is running on a docker container.
I tried to provide the NVD API Key by getting it from https://nvd.nist.gov/developers/request-an-api-key and by modifiyng my pom.xml I added this I also added a bit of delay because the API cannot remote call too often:
First of all: make sure that you use some shared cache location in your gitlab pipeline or else each build will have to re-download the entire 280k+ entries over and over.
If your CI/CD environment has a shared local repository for maven mounted it that would work, as by default (with no further configuration settings) the dependency-check maven plugin will use a folder in the maven localRepo as it's caching folder.
However if your CI/CD runs with a freshly created empty maven localrepo you should find a way to put some persistent storage caching into play.
Regarding the NVD API Key.... if you still get that error after adding the configuration in your maven pom there is likely an error regarding where you've put that configuration.
The initial run will take some time. How much will depend on the load towards NVD (the number of retries it needs to download the whole set. Subsequent runs when you cache the data would typically only retrieve 0-5k entries (the entries updated / added since your last build).
The NvdApiDelay would not need an override, DependencyCheck itself defaults to different timeouts for unauthenticated (no NvdApiKey - hence the warning, that delay is much larger, meaning the initial download will take a significant amount of extra time) and authenticated (with an API key - higher rate allowed, so smaller delays) usage of the NVD API.
I'm trying to use the dependency-check-maven plugin, but I always get stuck in the updateof the NVD database. This is my easy set up:
I'm running it in a gitlab pipeline and the output is this:
And the update takes forever. I cannot wait 3-4 hours, also because it is running on a docker container.
I tried to provide the NVD API Key by getting it from https://nvd.nist.gov/developers/request-an-api-key and by modifiyng my pom.xml I added this I also added a bit of delay because the API cannot remote call too often:
But the output was always the same. I tried with
<autoupdate>false</autoupdate>
but same result.The key is okay, I think, the cmd test with curl is giving me this output:
I really don't know what to do. Can anyone help me?
The text was updated successfully, but these errors were encountered: