Update docker/trivy/start.sh

This commit is contained in:
colin 2024-01-20 16:43:22 +00:00
parent 155453c408
commit f59ef48aab
1 changed files with 2 additions and 2 deletions

View File

@ -48,10 +48,10 @@ report_scan_results() {
run_scan() { run_scan() {
if [ "$LOW_PRIORITY" = "true" ]; then if [ "$LOW_PRIORITY" = "true" ]; then
echo "Running Trivy scan with low priority (nice 19)..." 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 else
echo "Running Trivy scan..." 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 fi
} }