From e84da1caf3aa87ee8d1a376f7c8d4e20a2f78dfd Mon Sep 17 00:00:00 2001 From: lezi-fun <177434121+lezi-fun@users.noreply.github.com> Date: Sun, 17 May 2026 16:03:10 +0800 Subject: [PATCH] Prevent sensitive env reintroduction --- src/review/codexCliReviewer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/review/codexCliReviewer.ts b/src/review/codexCliReviewer.ts index 8ac4fdf..480eafb 100644 --- a/src/review/codexCliReviewer.ts +++ b/src/review/codexCliReviewer.ts @@ -207,6 +207,10 @@ function buildCodexChildEnv(extraEnv: Record): 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; }