Skip to content

Commit 50b6b5f

Browse files
committed
fix: resolve hang by aggressively unsetting GOOGLE_APPLICATION_CREDENTIALS when access token is present
1 parent ee2b83c commit 50b6b5f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ runs:
270270
if [[ -n "${GOOGLE_CLOUD_ACCESS_TOKEN:-}" ]]; then
271271
unset GEMINI_API_KEY
272272
unset GOOGLE_API_KEY
273+
unset GOOGLE_APPLICATION_CREDENTIALS
273274
elif [[ "${GOOGLE_GENAI_USE_VERTEXAI:-false}" == "true" && -n "${GOOGLE_API_KEY:-}" ]]; then
274275
unset GEMINI_API_KEY
275276
elif [[ -n "${GEMINI_API_KEY:-}" ]]; then
@@ -317,6 +318,7 @@ runs:
317318
unset GEMINI_API_KEY
318319
unset GOOGLE_API_KEY
319320
# Unset credential file pointers that might cause conflicts with the access token and hang.
321+
unset GOOGLE_APPLICATION_CREDENTIALS
320322
unset CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
321323
unset GOOGLE_GHA_CREDS_PATH
322324
elif [[ "${GOOGLE_GENAI_USE_VERTEXAI:-false}" == "true" && -n "${GOOGLE_API_KEY:-}" ]]; then

0 commit comments

Comments
 (0)