Update docker/trivy/start.sh
This commit is contained in:
parent
f08607bb9a
commit
921ff60e65
|
@ -13,9 +13,9 @@ run_scan() {
|
||||||
for SCANNER in $SCANNERS_ENV; do
|
for SCANNER in $SCANNERS_ENV; do
|
||||||
CURRENT_LOG="/log/trivy_scan_${SCANNER}.log"
|
CURRENT_LOG="/log/trivy_scan_${SCANNER}.log"
|
||||||
if [ "$LOW_PRIORITY" = "true" ]; then
|
if [ "$LOW_PRIORITY" = "true" ]; then
|
||||||
nice -n 19 trivy filesystem --skip-db-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
|
nice -n 19 trivy filesystem --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
|
||||||
else
|
else
|
||||||
trivy filesystem --skip-db-update --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
|
trivy filesystem --cache-dir /tmp --timeout $TIMEOUT --scanners $SCANNER $( [ "$IGNORE_UNFIXED" = "true" ] && echo '--ignore-unfixed' ) /mnt > $CURRENT_LOG
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
IFS="$OLD_IFS"
|
IFS="$OLD_IFS"
|
||||||
|
|
Loading…
Reference in New Issue