Update docker/trivy/start.sh
This commit is contained in:
parent
155453c408
commit
f59ef48aab
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue