Skip to content

Commit 54430fa

Browse files
committed
take a copy of the environment and don't actually mutate it
Signed-off-by: edward kim <[email protected]>
1 parent 9b52857 commit 54430fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/exec_auth.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export class ExecAuth implements Authenticator {
9797
}
9898
let opts = {};
9999
if (exec.env) {
100-
const env = process.env;
100+
const env = {
101+
...process.env
102+
};
101103
exec.env.forEach((elt) => (env[elt.name] = elt.value));
102104
opts = { ...opts, env };
103105
}

0 commit comments

Comments
 (0)