# Source this file to make every trivy command use the local DB and never touch the network: # source /work/acb/trivy-db/trivy-offline.env # Environment variables are used instead of CLI flags because `trivy config` rejects # --skip-db-update / --skip-java-db-update / --offline-scan, while env vars are ignored where unused. export TRIVY_CACHE_DIR=/work/acb/trivy-db/cache export TRIVY_SKIP_DB_UPDATE=true export TRIVY_SKIP_JAVA_DB_UPDATE=true export TRIVY_SKIP_CHECK_UPDATE=true export TRIVY_OFFLINE_SCAN=true export TRIVY_SKIP_VERSION_CHECK=true export TRIVY_DISABLE_TELEMETRY=true