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

Update CLI from 0.23.0 to 0.24.0 breaks @

Abierto
#439 1 comentario 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
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, typescript
Área
ci-cd

Línea de trabajo

Comienza con el flujo de trabajo de Action mostrado en el issue e inspecciona cómo se pasa la entrada del prompt a Gemini CLI, centrándote en el manejo de las referencias a archivos con @ y en la configuración gemini_cli_version. Reproduce el ejemplo con CLI 0.23.0 y 0.24.0; se considera terminado cuando context.md está incluido y el prompt se procesa correctamente en 0.24.0.

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

Descripción

area/core github_actions kind/bug priority/p1
TL;DR

We detected that our workflows stopped working on 2026-01-14 14:50 CEST. Checking the logs, there is an update from Gemini CLI 0.23.0 to 0.24.0. After investigating the issue is related to including files in the context using @ in the GitHub Action.

Expected behavior

It continues working like before, the file is included in the context, and the action processes the prompt correctly

Observed behavior

The Gemini CLI in the logs changes from 0.23.0 to 0.24.0 (default setting is latest)

Action YAML
---
name: Test Gemini

on:
  workflow_dispatch:

permissions:
  contents: read

jobs:
  analysis:
    runs-on: ubuntu-24.04
    permissions:
      contents: read
      actions: read
      checks: read
      id-token: write
      issues: write
      pull-requests: write
    steps:
      - name: checkout
        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # ratchet:actions/checkout@v5
        with:
          persist-credentials: false

      - name: Create context file
        run: |
          cat <<EOF > context.md
          # Context

          This is an example of a markdown file.
          EOF

      - name: Test Gemini
        uses: google-github-actions/run-gemini-cli@87c4941afde98641c57b70f672fbdfb7b9fa4623 # ratchet:google-github-actions/run-gemini-cli@v0.1.16
        id: analyze-ci-error
        env:
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          gcp_workload_identity_provider: '${{ secrets.WORKLOAD_IDENTITY_PROVIDER_ID }}'
          gcp_service_account: '${{ secrets.SERVICE_ACCOUNT_EMAIL }}'
          gcp_project_id: '${{ vars.GCP_PROJECT }}'
          use_vertex_ai: "true"
          gcp_location: "us-central1"
          gemini_model: gemini-2.5-pro
          gemini_debug: "true"
          upload_artifacts: "true"
          gemini_cli_version: 0.24.0
          settings: |-
            {
              "general": {
                "previewFeatures": true
              },
              "telemetry": {
                "enabled": false,
                "target": "local",
                "outfile": ".gemini/telemetry.log"
              },
              "mcpServers": {
                "github": {
                  "command": "docker",
                  "args": [
                    "run",
                    "-i",
                    "--rm",
                    "-e",
                    "GITHUB_PERSONAL_ACCESS_TOKEN",
                    "-e",
                    "GITHUB_TOOLSETS",
                    "ghcr.io/github/github-mcp-server"
                  ],
                  "env": {
                    "GITHUB_PERSONAL_ACCESS_TOKEN": "${GH_TOKEN}",
                    "GITHUB_TOOLSETS": "default,actions"
                  }
                }
              },
              "tools": {
                "autoAccept": true,
                "core": [
                  "run_shell_command(cat)",
                  "run_shell_command(echo)",
                  "run_shell_command(grep)",
                  "run_shell_command(head)",
                  "run_shell_command(tail)",
                  "run_shell_command(gh)",
                  "run_shell_command(ls)",
                  "read_file",
                  "write_file",
                  "glob",
                  "search_file_content",
                  "replace"
                ]
              }
            }
          prompt: |-
            @${{ github.workspace }}/context.md
            what color is the sky?

      - name: 'Upload Gemini CLI outputs'
        if: always()
        uses: 'actions/upload-artifact@v6' # ratchet:exclude
        with:
          name: 'gemini-output-logs'
          path: 'gemini-artifacts/'
Log output
stdout

Resources updated for server: githubTools updated for server: github{
  "session_id": "cdc87d8e-629c-4b95-a4b5-32c7ec32dc58",
  "response": "The sky is blue.",
  "stats": {
    "models": {
      "gemini-2.5-pro": {
        "api": {
          "totalRequests": 1,
          "totalErrors": 0,
          "totalLatencyMs": 4082
        },
        "tokens": {
          "input": 10044,
          "prompt": 10044,
          "candidates": 5,
          "total": 10139,
          "cached": 0,
          "thoughts": 90,
          "tool": 0
        }
      }
    },
    "tools": {
      "totalCalls": 0,
      "totalSuccess": 0,
      "totalFail": 0,
      "totalDurationMs": 0,
      "totalDecisions": {
        "accept": 0,
        "reject": 0,
        "modify": 0,
        "auto_accept": 0
      },
      "byName": {}
    },
    "files": {
      "totalLinesAdded": 0,
      "totalLinesRemoved": 0
    }
  }
}


stderr

[DEBUG] [MemoryDiscovery] Loading server hierarchical memory for CWD: /home/runner/work/my-repo/my-repo (importFormat: tree)
[DEBUG] [MemoryDiscovery] Searching for GEMINI.md starting from CWD: /home/runner/work/my-repo/my-repo
[DEBUG] [MemoryDiscovery] Determined project root: /home/runner/work/my-repo/my-repo
[DEBUG] [BfsFileSearch] Scanning [1/200]: batch of 1
[DEBUG] [BfsFileSearch] Scanning [7/200]: batch of 6
[DEBUG] [BfsFileSearch] Scanning [22/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [37/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [52/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [67/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [82/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [97/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [112/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [127/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [142/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [157/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [172/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [187/200]: batch of 15
[DEBUG] [BfsFileSearch] Scanning [200/200]: batch of 13
[DEBUG] [MemoryDiscovery] Final ordered GEMINI.md paths to read: []
[DEBUG] [MemoryDiscovery] No GEMINI.md files found in hierarchy of the workspace.
YOLO mode is enabled. All tool calls will be automatically approved.
Flushing log events to Clearcut.
[DEBUG] [MCP STDERR (github)]:  Unable to find image 'ghcr.io/github/github-mcp-server:latest' locally
[DEBUG] [MCP STDERR (github)]:  latest: Pulling from github/github-mcp-server
[DEBUG] [MCP STDERR (github)]:  fab8c4b3fa32: Pulling fs layer
bfb59b82a9b6: Pulling fs layer
017886f7e176: Pulling fs layer
62de241dac5f: Pulling fs layer
2780920e5dbf: Pulling fs layer
7c12895b777b: Pulling fs layer
3214acf345c0: Pulling fs layer
52630fc75a18: Pulling fs layer
dd64bf2dd177: Pulling fs layer
4aa0ea1413d3: Pulling fs layer
dcaa5a89b0cc: Pulling fs layer
069d1e267530: Pulling fs layer
e7fa9df358f0: Pulling fs layer
4082635fdb72: Pulling fs layer
d2cbeecbe176: Pulling fs layer
3d0283baba94: Pulling fs layer
62de241dac5f: Waiting
2780920e5dbf: Waiting
7c12895b777b: Waiting
4aa0ea1413d3: Waiting
3214acf345c0: Waiting
52630fc75a18: Waiting
dcaa5a89b0cc: Waiting
069d1e267530: Waiting
dd64bf2dd177: Waiting
e7fa9df358f0: Waiting
4082635fdb72: Waiting
3d0283baba94: Waiting
d2cbeecbe176: Waiting
[DEBUG] [MCP STDERR (github)]:  bfb59b82a9b6: Verifying Checksum
bfb59b82a9b6: Download complete
[DEBUG] [MCP STDERR (github)]:  fab8c4b3fa32: Download complete
[DEBUG] [MCP STDERR (github)]:  017886f7e176: Verifying Checksum
017886f7e176: Download complete
[DEBUG] [MCP STDERR (github)]:  fab8c4b3fa32: Pull complete
[DEBUG] [MCP STDERR (github)]:  62de241dac5f: Verifying Checksum
62de241dac5f: Download complete
[DEBUG] [MCP STDERR (github)]:  2780920e5dbf: Verifying Checksum
2780920e5dbf: Download complete
[DEBUG] [MCP STDERR (github)]:  7c12895b777b: Verifying Checksum
7c12895b777b: Download complete
[DEBUG] [MCP STDERR (github)]:  3214acf345c0: Verifying Checksum
3214acf345c0: Download complete
[DEBUG] [MCP STDERR (github)]:  52630fc75a18: Verifying Checksum
[DEBUG] [MCP STDERR (github)]:  52630fc75a18: Download complete
[DEBUG] [MCP STDERR (github)]:  dd64bf2dd177: Verifying Checksum
dd64bf2dd177: Download complete
[DEBUG] [MCP STDERR (github)]:  dcaa5a89b0cc: Verifying Checksum
[DEBUG] [MCP STDERR (github)]:  dcaa5a89b0cc: Download complete
[DEBUG] [MCP STDERR (github)]:  4aa0ea1413d3: Verifying Checksum
4aa0ea1413d3: Download complete
[DEBUG] [MCP STDERR (github)]:  069d1e267530:
[DEBUG] [MCP STDERR (github)]:  Verifying Checksum
069d1e267530: Download complete
[DEBUG] [MCP STDERR (github)]:  bfb59b82a9b6: Pull complete
[DEBUG] [MCP STDERR (github)]:  4082635fdb72: Verifying Checksum
4082635fdb72: Download complete
[DEBUG] [MCP STDERR (github)]:  e7fa9df358f0: Verifying Checksum
e7fa9df358f0: Download complete
[DEBUG] [MCP STDERR (github)]:  d2cbeecbe176: Verifying Checksum
[DEBUG] [MCP STDERR (github)]:  d2cbeecbe176: Download complete
[DEBUG] [MCP STDERR (github)]:  017886f7e176: Pull complete
[DEBUG] [MCP STDERR (github)]:  62de241dac5f: Pull complete
[DEBUG] [MCP STDERR (github)]:  2780920e5dbf: Pull complete
[DEBUG] [MCP STDERR (github)]:  7c12895b777b: Pull complete
[DEBUG] [MCP STDERR (github)]:  3214acf345c0: Pull complete
[DEBUG] [MCP STDERR (github)]:  52630fc75a18: Pull complete
[DEBUG] [MCP STDERR (github)]:  dd64bf2dd177: Pull complete
[DEBUG] [MCP STDERR (github)]:  4aa0ea1413d3: Pull complete
[DEBUG] [MCP STDERR (github)]:  3d0283baba94: Verifying Checksum
3d0283baba94: Download complete
[DEBUG] [MCP STDERR (github)]:  dcaa5a89b0cc: Pull complete
[DEBUG] [MCP STDERR (github)]:  069d1e267530: Pull complete
[DEBUG] [MCP STDERR (github)]:  e7fa9df358f0: Pull complete
[DEBUG] [MCP STDERR (github)]:  4082635fdb72: Pull complete
[DEBUG] [MCP STDERR (github)]:  d2cbeecbe176: Pull complete
[DEBUG] [MCP STDERR (github)]:  3d0283baba94: Pull complete
[DEBUG] [MCP STDERR (github)]:  Digest: sha256:744cf8e42ded1c9bb6cdbd9d64fc66bd898cf4093cb3674febc000a9f64c35c0
[DEBUG] [MCP STDERR (github)]:  Status: Downloaded newer image for ghcr.io/github/github-mcp-server:latest
[DEBUG] [MCP STDERR (github)]:  time=2026-01-15T15:12:47.465Z level=INFO msg="starting server" version=v0.28.1 host="" dynamicToolsets=false readOnly=false lockdownEnabled=false
[DEBUG] [MCP STDERR (github)]:  GitHub MCP Server running on stdio
[DEBUG] [MCP STDERR (github)]:  time=2026-01-15T15:12:47.467Z level=INFO msg="server run start"
time=2026-01-15T15:12:47.467Z level=INFO msg="server connecting"
time=2026-01-15T15:12:47.467Z level=INFO msg="server session connected" session_id=""
Server 'github' supports tool updates. Listening for changes...
Server 'github' supports resource updates. Listening for changes...
[DEBUG] [MCP STDERR (github)]:  time=2026-01-15T15:12:47.473Z level=INFO msg="session initialized"
🔔 Received tool update notification from 'github'
🔔 Received resource update notification from 'github'
Tools changed, updating Gemini context...
[STARTUP] StartupProfiler.flush() called with 8 phases
[STARTUP] Recording metric for phase: cli_startup duration: 462.8819760000001
[STARTUP] Recording metric for phase: load_settings duration: 4.7769359999997505
[STARTUP] Recording metric for phase: parse_arguments duration: 19.143830999999864
[STARTUP] Recording metric for phase: load_cli_config duration: 348.2322899999999
[STARTUP] Recording metric for phase: initialize_app duration: 6.255233000000317
[STARTUP] Recording metric for phase: authenticate duration: 0.06004399999983434
[STARTUP] Recording metric for phase: discover_tools duration: 409.09152300000005
[STARTUP] Recording metric for phase: initialize_mcp_clients duration: 3320.4669689999996
Session ID: cdc87d8e-629c-4b95-a4b5-32c7ec32dc58
The --prompt (-p) flag has been deprecated and will be removed in a future version. Please use a positional argument for your prompt. See gemini --help for more information.
Additional information

The same prompt works when setting gemini_cli_version to 0.23.0 in the Workflow and works fine locally with 0.24.0

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.