Files
gohoarder/pkg/scanner/grype
lukaszraczylo 17d7bebf88 fix(scanner): stop concurrent grype database downloads
Each grype scan checked for a new vulnerability database and downloaded
it. When the database became stale, every concurrent scan started its
own download. Killed scans left their partial downloads behind, and the
data volume filled up in minutes.

Scans now run with GRYPE_DB_AUTO_UPDATE=false. A single background loop
updates the database every security.scanners.grype.db_update_interval
(default 6h). Updates are serialised and outlive a cancelled caller.
Before each update, the scanner removes grype-db-download and getter
dirs that are older than one hour.
2026-11-27 10:48:03 +00:00
..