Skip to content

Commit

Permalink
test: fix test invoke script
Browse files Browse the repository at this point in the history
  • Loading branch information
didroe committed Sep 28, 2023
1 parent 94e30cf commit 231e814
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions scripts/invoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
fi

0 comments on commit 231e814

Please sign in to comment.