-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: check artifacts in DB to reduce number of sha1 queries #50
fix: check artifacts in DB to reduce number of sha1 queries #50
Conversation
This is weird... But an hour ago I ran the action with the wrong DB path (so the scanner checked and saved all versions) and there were no errors -https://github.com/DmitriyLewen/trivy-java-db/actions/runs/12502425532/job/34881350678 |
Does it mean Maven Central Repository counts the overall number of requests, not by IP address? |
I'm not sure about that. I saw that before and rechecked now: But locally it works for me without errors. |
OK, anyway, it's better to reduce HTTP requests. Did you confirm the database with this change is identical to the existing one? |
I still can't build new DB - https://github.com/DmitriyLewen/trivy-java-db/actions/runs/12683666619/job/35351108235 I will let you know when build and compare DBs. |
@knqyf263 I can confirm that new DBs contain all artifacts from actual DB (with new artifacts of course). |
I'm looking into the central index, but unpacking never ended. I again kicked unpacking on the server and am waiting for it to complete now.
|
IICR we already thought about that when started working on trivy-java-db. But IIRC there were problem with |
Since the purpose is different this time, I thought it would be great if we could simply retrieve the updated artifact with the Luke CLI. In any case, it's been two years since we started trivy-java-db, so I'm willing to give it another try. |
Okay 👍 |
My server has 40GB of space, but it failed due to out of disk...
|
I downloaded It looks like all indexes need at least 35 GB PS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave up the maven index again in 2025 😄 Feel free to merge this PR.
Description
Recently, we’ve been encountering too many requests error more frequently (https://github.com/aquasecurity/trivy-java-db/actions/runs/12458901714).
So we need to check the version in the DB.
If the version for this artifact is already added - do not request sha1 for this version.
test builds: