From f59ef48aab1affa0035fd8b1870b290ad68e36f9 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 20 Jan 2024 16:43:22 +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 3c86f76..d0033ee 100644 --- a/docker/trivy/start.sh +++ b/docker/trivy/start.sh @@ -48,10 +48,10 @@ report_scan_results() { run_scan() { if [ "$LOW_PRIORITY" = "true" ]; then echo "Running Trivy scan with low priority (nice 19)..." - nice -n 19 trivy filesystem --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG + nice -n 19 trivy filesystem --skip-update --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG else echo "Running Trivy scan..." - trivy filesystem --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG + trivy filesystem --skip-update --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG fi }