From af62540da6ae6bc0f48cbb75e7b6c3ef140ef4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20M=2E=20Gonz=C3=A1lez?= Date: Fri, 31 Jan 2025 16:09:09 -0300 Subject: [PATCH] Disable telemetry on CI. --- .github/workflows/test-detectors-pr.yml | 5 +++++ .github/workflows/test-scout.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/test-detectors-pr.yml b/.github/workflows/test-detectors-pr.yml index 6fdf6caf..97a5b004 100644 --- a/.github/workflows/test-detectors-pr.yml +++ b/.github/workflows/test-detectors-pr.yml @@ -124,6 +124,11 @@ jobs: key: ${{ runner.os }}-tests-${{ hashFiles('**/Cargo.toml', 'apps/cargo-scout-audit/src/**/*.rs') }} restore-keys: ${{ runner.os }}-tests- + - name: Disable telemetry + run: | + mkdir -p ~/.scout-audit/telemetry + echo "DONOTTRACK" > ~/.scout-audit/telemetry/user_id.txt + - name: Run unit and integration tests run: python scripts/run-tests.py --detector=${{ matrix.detector }} diff --git a/.github/workflows/test-scout.yml b/.github/workflows/test-scout.yml index 6517e399..6cb99b67 100644 --- a/.github/workflows/test-scout.yml +++ b/.github/workflows/test-scout.yml @@ -38,6 +38,11 @@ jobs: - name: Install clippy-sarif and cargo-nextest run: cargo install clippy-sarif cargo-nextest --locked + - name: Disable telemetry + run: | + mkdir -p ~/.scout-audit/telemetry + echo "DONOTTRACK" > ~/.scout-audit/telemetry/user_id.txt + - name: Run tests and set output id: run-tests working-directory: apps/cargo-scout-audit