From 8053174a2522afd61ff74ebff68cd5bcdf0033f7 Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Wed, 15 Apr 2026 21:27:34 +0200 Subject: [PATCH] ci: suppress CLI telemetry in workflows CI workflows that build/run archgate from source were emitting PostHog telemetry tagged with in-development version strings from package.json (e.g. v0.29.0-prerelease). This polluted product-usage numbers with CI-from-source events that look like real user installs. Set ARCHGATE_TELEMETRY="0" as a top-level workflow env var so the CLI's isEnvTelemetryDisabled() opt-out short-circuits emission during CI runs. The env var is a no-op for workflows that don't invoke the CLI, so it is applied broadly to all workflows that install Bun / run the repo's scripts. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/code-pull-request.yml | 3 +++ .github/workflows/release-binaries.yml | 3 +++ .github/workflows/release.yml | 3 +++ .github/workflows/smoke-test-linux.yml | 3 +++ .github/workflows/smoke-test-windows.yml | 3 +++ .github/workflows/update-llms.yaml | 3 +++ .github/workflows/update-lock.yaml | 3 +++ 7 files changed, 21 insertions(+) diff --git a/.github/workflows/code-pull-request.yml b/.github/workflows/code-pull-request.yml index e2fb1f16..fa57b2cb 100644 --- a/.github/workflows/code-pull-request.yml +++ b/.github/workflows/code-pull-request.yml @@ -15,6 +15,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + ARCHGATE_TELEMETRY: "0" + jobs: validate: name: Lint, Test & Check diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 7932e8f0..d6fbad55 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -12,6 +12,9 @@ on: permissions: contents: write +env: + ARCHGATE_TELEMETRY: "0" + jobs: build: name: Build ${{ matrix.artifact }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13749820..c203741b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,9 @@ permissions: pull-requests: write statuses: write +env: + ARCHGATE_TELEMETRY: "0" + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/smoke-test-linux.yml b/.github/workflows/smoke-test-linux.yml index 0cafb917..8fcd50dc 100644 --- a/.github/workflows/smoke-test-linux.yml +++ b/.github/workflows/smoke-test-linux.yml @@ -6,6 +6,9 @@ on: permissions: contents: read +env: + ARCHGATE_TELEMETRY: "0" + jobs: linux: name: Linux diff --git a/.github/workflows/smoke-test-windows.yml b/.github/workflows/smoke-test-windows.yml index e2af6533..146a5133 100644 --- a/.github/workflows/smoke-test-windows.yml +++ b/.github/workflows/smoke-test-windows.yml @@ -6,6 +6,9 @@ on: permissions: contents: read +env: + ARCHGATE_TELEMETRY: "0" + jobs: windows: name: Windows diff --git a/.github/workflows/update-llms.yaml b/.github/workflows/update-llms.yaml index 0b3afa8d..445fea48 100644 --- a/.github/workflows/update-llms.yaml +++ b/.github/workflows/update-llms.yaml @@ -14,6 +14,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + ARCHGATE_TELEMETRY: "0" + jobs: update-llms: name: Update llms-full.txt diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml index 6c5f2101..615d02c4 100644 --- a/.github/workflows/update-lock.yaml +++ b/.github/workflows/update-lock.yaml @@ -13,6 +13,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + ARCHGATE_TELEMETRY: "0" + jobs: update-lock: name: Update Package Lock