mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-28 06:46:26 +00:00
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.