You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Aggressively unset credential file pointers to prevent CLI from picking them up and hanging.
330
-
# We unset CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE and GOOGLE_GHA_CREDS_PATH as they are known to cause issues.
331
-
# We keep GOOGLE_APPLICATION_CREDENTIALS for now to see if it's needed for MCP tools.
319
+
# Unset credential file pointers that might cause conflicts with the access token.
332
320
unset CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
333
321
unset GOOGLE_GHA_CREDS_PATH
334
-
# If it still hangs, we may need to unset GOOGLE_APPLICATION_CREDENTIALS too.
335
-
# unset GOOGLE_APPLICATION_CREDENTIALS
336
322
elif [[ "${GOOGLE_GENAI_USE_VERTEXAI:-false}" == "true" && -n "${GOOGLE_API_KEY:-}" ]]; then
337
-
echo "Using Vertex AI API Key; unsetting conflicting Gemini API key."
338
323
unset GEMINI_API_KEY
339
324
elif [[ -n "${GEMINI_API_KEY:-}" ]]; then
340
-
echo "Using Gemini API Key; ensuring Vertex AI and Code Assist are disabled."
341
325
export GOOGLE_GENAI_USE_VERTEXAI="false"
342
326
export GOOGLE_GENAI_USE_GCA="false"
343
327
unset GOOGLE_API_KEY
@@ -348,32 +332,16 @@ runs:
348
332
# We capture stdout (JSON) to TEMP_STDOUT and stderr to TEMP_STDERR
349
333
if [[ "${GEMINI_DEBUG}" = true ]]; then
350
334
echo "::warning::Gemini CLI debug logging is enabled. This will stream responses, which could reveal sensitive information if processed with untrusted inputs."
351
-
echo "::: Start Gemini CLI STDOUT :::"
352
335
if ! gemini --debug --yolo --prompt "${PROMPT}" --output-format json 2> >(tee "${TEMP_STDERR}" >&2) | tee "${TEMP_STDOUT}"; then
353
336
FAILED=true
354
337
fi
355
-
# Wait for async stderr logging to complete. This is because process substitution in Bash is async so let tee finish writing to ${TEMP_STDERR}
356
-
sleep 1
357
-
echo "::: End Gemini CLI STDOUT :::"
358
338
else
359
339
if ! gemini --yolo --prompt "${PROMPT}" --output-format json 2> "${TEMP_STDERR}" 1> "${TEMP_STDOUT}"; then
360
340
FAILED=true
361
341
fi
362
342
fi
363
343
364
-
# Create the artifacts directory and copy full logs
0 commit comments