Database cache not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with metadata.json and the GitHub Actions publication workflow, then reproduce the issue with trivy image --download-java-db-only on Linux using Trivy 0.46.1. Compare NextUpdate, UpdatedAt, DownloadedAt, and the downloaded database version against the latest successful publication. Done means the command retrieves the current database and metadata has a future NextUpdate.
Written by the indexing model from the issue text.
Description
Dear all
Database cache seems to be broken due to publish failure.
{ "Version": 1, "NextUpdate": "2025-02-17T06:14:17Z", "UpdatedAt": "2025-02-14T02:24:51.921228254Z", "DownloadedAt": "2025-02-20T08:31:12.607068938Z" }
The NextUpdate remains valued in the past.
It seem to match to three days after the last successfull github action on current projet.
Workaround
Current workaround is to manually update NextUpdate in the metadata.json but the database version downloaded still is an old one.
Trivy version
0.46.1
Reproduction Steps
trivy image --download-java-db-only
Operating System
linux
- Dominant language
- Go
- Stars
- 41
- Forks
- 26
- Avg merge
- 45m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aquasecurity/trivy-java-db
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
aquasecurity/trivy-java-db#71 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
aquasecurity/trivy-java-db#66 · 7 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
aquasecurity/trivy-java-db#56 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
aquasecurity/trivy-java-db#44 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
aquasecurity/trivy-java-db#33 · 1 comment ·
All issues in aquasecurity/trivy-java-db
Similar issues
-
[Bug]: message-level cache_control on chat messages is dropped, so Anthropic prompt caching never triggersPossibly taken @Atharva-Kanherkar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
eugenioenko/ttt#1000 ·
Maintainers usually reply within 1 day
-
bug needs-acceptance wg/developer-experience-ecosystem
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/semantic-router#5249 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Billionmail/BillionMail#389 ·
-
在“产品文档”下拉列表,增加“探索”频道Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7489 ·
Maintainers usually reply within 1 day