diff --git a/scripts/invoke.sh b/scripts/invoke.sh index 365e72af..04e4b835 100755 --- a/scripts/invoke.sh +++ b/scripts/invoke.sh @@ -27,13 +27,20 @@ if [ -n "$BEARER_WORKSPACE" ]; then --exit-code=0 \ else - docker run --platform linux/amd64 --rm -v /tmp/bearer-scan:/tmp/bearer-scan -v $rule_loc:/tmp/rules bearer/bearer:$BEARER_VERSION BEARER_PHP_ENABLED=true scan $tmp_location \ - --only-rule=$rule_id \ - --disable-default-rules=true \ - --external-rule-dir=/tmp/rules \ - --format=json \ - --quiet \ - --disable-version-check \ - --exit-code=0 \ + docker run \ + --platform linux/amd64 \ + --rm \ + -v /tmp/bearer-scan:/tmp/bearer-scan \ + -v $rule_loc:/tmp/rules \ + -e BEARER_PHP_ENABLED=true \ + bearer/bearer:$BEARER_VERSION \ + scan $tmp_location \ + --only-rule=$rule_id \ + --disable-default-rules=true \ + --external-rule-dir=/tmp/rules \ + --format=json \ + --quiet \ + --disable-version-check \ + --exit-code=0 \ -fi \ No newline at end of file +fi