Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
juli1 committed Jan 30, 2025
1 parent a3da23f commit 51d5166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/integration-git-hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 51d5166

Please sign in to comment.