Update docker/trivy/start.sh
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
This commit is contained in:
parent
9bcdab2de9
commit
f6751cbd21
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue