Prevent sensitive env reintroduction

This commit is contained in:
lezi-fun committed 2026-05-17 16:03:10 +08:00
1 parent 6738a6f8bb
commit e84da1caf3
1 file changed
+4
+4
View File
@@ -207,6 +207,10 @@ function buildCodexChildEnv(extraEnv: Record<string, string>): NodeJS.ProcessEnv
}
for (const [key, value] of Object.entries(extraEnv)) {
if (SENSITIVE_ENV_KEYS.includes(key as (typeof SENSITIVE_ENV_KEYS)[number])) {
continue;
}
env[key] = value;
}