File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ const BUNDLED_TRUST_ROOT_ENV_KEYS = BUNDLED_TRUST_ROOT_ENV_LINES.map(
3434) ;
3535
3636const 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
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments