diff --git a/misc/integration-git-hooks.sh b/misc/integration-git-hooks.sh index 16c90f15..80fe6f6e 100755 --- a/misc/integration-git-hooks.sh +++ b/misc/integration-git-hooks.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer-git-hook ## A Python repository diff --git a/misc/integration-test-classification.sh b/misc/integration-test-classification.sh index bb5c9c40..0655bfb8 100755 --- a/misc/integration-test-classification.sh +++ b/misc/integration-test-classification.sh @@ -8,7 +8,7 @@ RESULTS_FILE="${REPO_DIR}/results.json" cargo build --locked --profile release-dev --bin datadog-static-analyzer -ANALYSIS_CMD='cargo run --locked --profile release-dev --bin datadog-static-analyzer -- --directory "${REPO_DIR}" -o "${RESULTS_FILE}" -f sarif' +ANALYSIS_CMD='cargo fetch && cargo run --locked --profile release-dev --bin datadog-static-analyzer -- --directory "${REPO_DIR}" -o "${RESULTS_FILE}" -f sarif' SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" "${SCRIPT_DIR}/helpers/test-classification.sh" "${ANALYSIS_CMD}" "${REPO_DIR}" "${RESULTS_FILE}" || { diff --git a/misc/integration-test-docker.sh b/misc/integration-test-docker.sh index 4037ecd9..ba5fedc3 100755 --- a/misc/integration-test-docker.sh +++ b/misc/integration-test-docker.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## A Python repository diff --git a/misc/integration-test-filter-rules.sh b/misc/integration-test-filter-rules.sh index 447b0f1a..67a04903 100755 --- a/misc/integration-test-filter-rules.sh +++ b/misc/integration-test-filter-rules.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer echo "Checking juice shop" diff --git a/misc/integration-test-git.sh b/misc/integration-test-git.sh index 1ace8464..e6d1c785 100755 --- a/misc/integration-test-git.sh +++ b/misc/integration-test-git.sh @@ -5,6 +5,7 @@ # 2. Run the latest version of the analyzer on it # 3. Check that we get the SHA of the commit and the category in the output SARIF file. +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## First, test a repository to check that the commit that indicates the repo information for a violation diff --git a/misc/integration-test-js-ts.sh b/misc/integration-test-js-ts.sh index 1fef3593..2f7f58bc 100755 --- a/misc/integration-test-js-ts.sh +++ b/misc/integration-test-js-ts.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer echo "Checking juice shop" diff --git a/misc/integration-test-python.sh b/misc/integration-test-python.sh index adf4ea82..b9be6ea0 100755 --- a/misc/integration-test-python.sh +++ b/misc/integration-test-python.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## A Python repository diff --git a/misc/integration-test-r.sh b/misc/integration-test-r.sh index d435e458..6f0810b2 100755 --- a/misc/integration-test-r.sh +++ b/misc/integration-test-r.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## An R repository diff --git a/misc/integration-test-rust.sh b/misc/integration-test-rust.sh index 52dd2ec2..be2febdf 100755 --- a/misc/integration-test-rust.sh +++ b/misc/integration-test-rust.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## An R repository diff --git a/misc/integration-test-secrets.sh b/misc/integration-test-secrets.sh index 1c4eef95..038e8972 100755 --- a/misc/integration-test-secrets.sh +++ b/misc/integration-test-secrets.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## A Python repository diff --git a/misc/integration-test-sql.sh b/misc/integration-test-sql.sh index 4a984452..7ca425c5 100755 --- a/misc/integration-test-sql.sh +++ b/misc/integration-test-sql.sh @@ -1,5 +1,6 @@ #!/bin/bash +cargo fetch cargo build --locked --profile release-dev --bin datadog-static-analyzer ## An R repository