From cb0ecda3e44d16d4744485ff188abbdee6875d62 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Tue, 5 May 2026 18:40:57 +0200 Subject: [PATCH] Disable gh telemetry when running integration tests --- pkg/integration/components/env.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/integration/components/env.go b/pkg/integration/components/env.go index e7a8a6941..6306a88ba 100644 --- a/pkg/integration/components/env.go +++ b/pkg/integration/components/env.go @@ -61,5 +61,10 @@ func NewTestEnvironment(rootDir string) []string { // versions >= 2.32.0 env = append(env, fmt.Sprintf("%s=%s", GIT_CONFIG_GLOBAL_ENV_VAR, globalGitConfigPath(rootDir))) + // Disable gh telemetry. It was enabled by default in gh 2.91.0, and + // this would cause gh config files to be left in the working tree + // (e.g. `test/.local/state/gh/device-id`). + env = append(env, "GH_TELEMETRY=disabled") + return env }