Update docker/trivy/start.sh
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
c5cf561c1e
commit
e57389ec37
|
@ -6,7 +6,11 @@ LOW_PRIORITY=${LOW_PRIORITY:-true}
|
||||||
|
|
||||||
# Use SCANNERS_ENV if provided, otherwise default to vuln, config, secret
|
# Use SCANNERS_ENV if provided, otherwise default to vuln, config, secret
|
||||||
if [ -n "$SCANNERS_ENV" ]; then
|
if [ -n "$SCANNERS_ENV" ]; then
|
||||||
IFS=',' read -r -a SCANNERS <<< "$SCANNERS_ENV"
|
OLD_IFS="$IFS"
|
||||||
|
IFS=',' read -r -a SCANNERS <<EOF
|
||||||
|
$SCANNERS_ENV
|
||||||
|
EOF
|
||||||
|
IFS="$OLD_IFS"
|
||||||
else
|
else
|
||||||
SCANNERS=("vuln" "config" "secret")
|
SCANNERS=("vuln" "config" "secret")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue