From bfbceb30577551c9c33bae717229ebe0c18b9357 Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Thu, 25 Jul 2024 17:17:49 +0100 Subject: [PATCH] Fix variables from previous invocation breaking second invocation --- common/lib/tbot.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/lib/tbot.ts b/common/lib/tbot.ts index efd592c..75bef9f 100644 --- a/common/lib/tbot.ts +++ b/common/lib/tbot.ts @@ -148,6 +148,13 @@ export function baseEnvFromSharedInputs( env['_TBOT_TELEMETRY_HELPER'] = name; env['_TBOT_TELEMETRY_HELPER_VERSION'] = version; + // Some environment variables are set by our actions and can then end up + // being used by a second call to our actions. This causes an error as both + // variables for proxy and auth addr can be set and tbot rejects this. Since + // we're explicitly configuring tbot, we can remove these variables. + delete env['TELEPORT_PROXY']; + delete env['TELEPORT_AUTH_SERVER']; + return env; }