Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

run-gemini-cli does not inherit authentication from google-github-actions/auth

Abierto
#455 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
github-actions, google-cloud, typescript

Línea de trabajo

Comienza rastreando el manejo de la autenticación en run-gemini-cli cuando sigue google-github-actions/auth@v3 con credentials_json, utilizando el workflow y los logs reportados como reproducción. Verifica si GOOGLE_APPLICATION_CREDENTIALS se reconoce para Vertex AI y si desaparecen la advertencia y el fallo de autenticación de Gemini CLI; documenta el comportamiento requerido en tests si el repositorio los proporciona.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area/auth github_actions kind/bug priority/p1 status/gemini-cli-fix

Summary

When using google-github-actions/auth@v3 with credentials_json before run-gemini-cli@v0, the action does not inherit the authentication and emits the following warning:

No authentication method provided. Please provide one of 'gemini_api_key', 'google_api_key', or 'gcp_workload_identity_provider'.

Even though the GOOGLE_APPLICATION_CREDENTIALS environment variable is correctly set by the auth action, run-gemini-cli does not recognize it and requires explicit authentication parameters.

Expected Behavior

The action should recognize authentication established by google-github-actions/auth@v3, similar to how other Google GitHub Actions work (e.g., google-github-actions/deploy-cloudrun).

Observed Behavior

  1. The action emits "No authentication method provided" warning
  2. Gemini CLI fails to authenticate with Vertex AI
  3. The gh CLI commands within Gemini sandbox also fail to authenticate (even with GH_TOKEN env var and sandbox: false)

Workflow Configuration

- name: Authenticate to Google Cloud
  uses: google-github-actions/auth@v3
  with:
    credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_POC }}
    create_credentials_file: true

- name: Automatic PR Review with Gemini
  uses: google-github-actions/run-gemini-cli@v0
  with:
    use_vertex_ai: true
    gcp_project_id: 'my-project'
    gcp_location: 'global'
    gemini_debug: true
    settings: |
      {
        "model": "gemini-3-pro-preview",
        "sandbox": false
      }
    prompt: |
      Review this PR...
  env:
    GH_TOKEN: ${{ secrets.GH_PAT }}

Logs

The environment shows auth was successful:

GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/.../gha-creds-xxx.json
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/.../gha-creds-xxx.json

But the action still warns about missing authentication.

Workaround

Currently, users must either:

  1. Use gcp_workload_identity_provider parameter (requires WIF setup)
  2. Pin to an older version (e.g., @v0.1.17)

Environment

  • Action version: v0.1.19 / v0.1.20
  • Runner: ubuntu-latest
  • Auth action: google-github-actions/auth@v3

Impact

This is a breaking change for users who were previously using credentials_json with the auth action. The action should either:

  1. Recognize GOOGLE_APPLICATION_CREDENTIALS environment variable
  2. Document that gcp_workload_identity_provider is now required
Lenguaje dominante
TypeScript
Estrellas
2.1k
Forks
285
Merge medio
8 h 8 min
PR fusionados (30 d)
1

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google-github-actions/run-gemini-cli

Todos los issues de google-github-actions/run-gemini-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.