Prevent sensitive env reintroduction
This commit is contained in:
1 parent
6738a6f8bb
commit
e84da1caf3
1 file changed
+4
@@ -207,6 +207,10 @@ function buildCodexChildEnv(extraEnv: Record<string, string>): NodeJS.ProcessEnv
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(extraEnv)) {
|
for (const [key, value] of Object.entries(extraEnv)) {
|
||||||
|
if (SENSITIVE_ENV_KEYS.includes(key as (typeof SENSITIVE_ENV_KEYS)[number])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
env[key] = value;
|
env[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user