Update docker/trivy/start.sh
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
colin 2024-01-20 22:35:37 +00:00
parent 9bcdab2de9
commit f6751cbd21
1 changed files with 2 additions and 2 deletions

View File

@ -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"