fix: pass sandbox docker env into containers (#15138) (thanks @stevebot-alive)

This commit is contained in:
George Pickett
2026-02-12 19:37:41 -08:00
parent 92567765e6
commit a067565db5
3 changed files with 5 additions and 1 deletions

View File

@@ -156,7 +156,9 @@ export function buildSandboxCreateArgs(params: {
args.push("--user", params.cfg.user);
}
for (const [key, value] of Object.entries(params.cfg.env ?? {})) {
if (!key.trim()) continue;
if (!key.trim()) {
continue;
}
args.push("--env", key + "=" + value);
}
for (const cap of params.cfg.capDrop) {