mxab / pre-commit-trivy

MIT License
16 stars 8 forks source link

Shared/global trivy cache #3

Open natefive opened 1 year ago

natefive commented 1 year ago

Thoughts on using ~/.pre-commit-trivy-cache as the cache location to avoid pulling the db for every repo?

mxab commented 1 year ago

Hi, sorry for the late reply.

You mean that I should create ~/.pre-commit-trivy-cache dir on the host and then mount it into the trivy docker container?

I can try this, but I'm not sure if ~ will work on everyones machine