Skip to content

Commit

Permalink
Fix variables from previous invocation breaking second invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Jul 25, 2024
1 parent d25608c commit bfbceb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/lib/tbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bfbceb3

Please sign in to comment.