diff --git a/misc/integration-git-hooks.sh b/misc/integration-git-hooks.sh index 40724d84..76575720 100755 --- a/misc/integration-git-hooks.sh +++ b/misc/integration-git-hooks.sh @@ -95,7 +95,7 @@ SHA3=$(cd $REPO_DIR && git rev-parse HEAD) echo "starting analyzer between $SHA2 and $SHA3" -./target/release-dev/datadog-static-analyzer-git-hook --repository "${REPO_DIR}" --static-analysis --secrets --debug yes --sha-start $SHA2 --sha-end $SHA3 >/tmp/plop 2>&1 +./target/release-dev/datadog-static-analyzer-git-hook --repository "${REPO_DIR}" --enable-static-analysis true --secrets --debug yes --sha-start $SHA2 --sha-end $SHA3 >/tmp/plop 2>&1 if [ $? -ne 11 ]; then echo "static analysis issues should have been found" @@ -119,7 +119,7 @@ fi echo "Starting test: error when a branch does not exists" -./target/release-dev/datadog-static-analyzer-git-hook --repository "${REPO_DIR}" --secrets --debug yes --default-branch mainwefwef >/tmp/plop 2>&1 +./target/release-dev/datadog-static-analyzer-git-hook --repository "${REPO_DIR}" --enable-secrets true --debug yes --default-branch mainwefwef >/tmp/plop 2>&1 if [ $? -ne 1 ]; then echo "branch cannot be found"