Skip to content

Commit 1ef1c42

Browse files
committed
fix: address PR review feedback
1 parent 68411e2 commit 1ef1c42

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/infra/dotenv.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ const BUNDLED_TRUST_ROOT_ENV_KEYS = BUNDLED_TRUST_ROOT_ENV_LINES.map(
3434
);
3535

3636
const WINDOWS_SHELL_TRUST_ROOT_ENV_KEYS = [
37+
"ComSpec",
38+
"COMSPEC",
3739
"ProgramFiles",
3840
"PROGRAMFILES",
3941
"ProgramW6432",
@@ -301,11 +303,16 @@ describe("loadDotEnv", () => {
301303
await writeEnvFile(
302304
path.join(cwdDir, ".env"),
303305
[
306+
"ComSpec=.\\evil-comspec",
307+
"COMSPEC=.\\evil-comspec-upper",
304308
"ProgramFiles=.\\evil-pfiles",
305309
"PROGRAMFILES=.\\evil-pfiles-upper",
306310
"ProgramW6432=.\\evil-pw6432",
311+
"PROGRAMW6432=.\\evil-pw6432-upper",
307312
"SystemRoot=.\\fake-root",
313+
"SYSTEMROOT=.\\fake-root-upper",
308314
"windir=.\\fake-windir",
315+
"WINDIR=.\\fake-windir-upper",
309316
].join("\n"),
310317
);
311318

src/infra/dotenv.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const BLOCKED_WORKSPACE_DOTENV_KEYS = new Set([
1919
"CLAWHUB_CONFIG_PATH",
2020
"CLAWHUB_TOKEN",
2121
"CLAWHUB_URL",
22+
"COMSPEC",
2223
"HTTP_PROXY",
2324
"HTTPS_PROXY",
2425
"IRC_HOST",

0 commit comments

Comments
 (0)