feat(auth): Enhance non-interactive gcp auth (#4811)

This commit is contained in:
Gal Zahavi
2025-07-25 10:19:38 -07:00
committed by GitHub
parent fb0db2dfd6
commit 6321442865
5 changed files with 200 additions and 8 deletions

View File

@@ -525,6 +525,14 @@ export async function start_sandbox(
);
}
// copy GOOGLE_GENAI_USE_GCA
if (process.env.GOOGLE_GENAI_USE_GCA) {
args.push(
'--env',
`GOOGLE_GENAI_USE_GCA=${process.env.GOOGLE_GENAI_USE_GCA}`,
);
}
// copy GOOGLE_CLOUD_PROJECT
if (process.env.GOOGLE_CLOUD_PROJECT) {
args.push(