From eaf9ef40097a25de5a488c60bc936b44643edbef Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 20 Jan 2024 20:59:53 +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 a3ffc83..41f2c2e 100644 --- a/docker/trivy/start.sh +++ b/docker/trivy/start.sh @@ -57,10 +57,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 --skip-update --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG + nice -n 19 trivy filesystem --skip-update --config $CURRENT_LOG --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt else echo "Running Trivy scan..." - trivy filesystem --skip-update --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG + trivy filesystem --skip-update --config $CURRENT_LOG --timeout $TIMEOUT --scanners $SCANNERS $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt fi }