From f6751cbd212eed7dcda55542cf663536983c33bf Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 20 Jan 2024 22:35:37 +0000 Subject: [PATCH] Update docker/trivy/start.sh --- docker/trivy/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/trivy/start.sh b/docker/trivy/start.sh index 9272309..0cae9fe 100644 --- a/docker/trivy/start.sh +++ b/docker/trivy/start.sh @@ -13,9 +13,9 @@ run_scan() { for SCANNER in $SCANNERS_ENV; do CURRENT_LOG="/log/trivy_scan_${SCANNER}.log" if [ "$LOW_PRIORITY" = "true" ]; then - nice -n 19 trivy filesystem --skip-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG + nice -n 19 trivy filesystem --skip-db-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG else - trivy filesystem --skip-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG + trivy filesystem --skip-db-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG fi done IFS="$OLD_IFS"