Skip to content

gemini: pre-trust workspace in ~/.gemini/trustedFolders.json - #3629

Open
adelva1984 wants to merge 1 commit into
google:mainfrom
adelva1984:fix/gemini-review-trusted-folders
Open

adelva1984 wants to merge 1 commit into
google:mainfrom
adelva1984:fix/gemini-review-trusted-folders

Conversation

@adelva1984

@adelva1984 adelva1984 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Pre-populates ~/.gemini/trustedFolders.json with TRUST_FOLDER for github.workspace before invoking run-gemini-cli across .github/workflows/gemini-review.yaml, .github/workflows/gemini-invoke.yaml, and .github/workflows/gemini-plan-execute.yaml.

  • In gemini-review.yaml, google-github-actions/run-gemini-cli (v0.1.22) only pipes a single "Y" to gemini extensions install, which gets consumed by the workspace-trust prompt in newer gemini-cli releases (0.68.0), leaving the extension/skill consent prompt hanging until the 15-minute job timeout.
  • In gemini-invoke.yaml and gemini-plan-execute.yaml, trusting the workspace ensures workspace .gemini/settings.json (mcpServers.github and tools.core) is loaded when folder trust is enforced in headless mode.

Pre-populate `~/.gemini/trustedFolders.json` with `TRUST_FOLDER` for `github.workspace` before invoking `run-gemini-cli` across `gemini-review.yaml`, `gemini-invoke.yaml`, and `gemini-plan-execute.yaml`.

- In `gemini-review.yaml`, `google-github-actions/run-gemini-cli` (`v0.1.22`) only pipes a single `"Y"` to `gemini extensions install`, which gets consumed by the workspace-trust prompt in newer `gemini-cli` releases, leaving the extension/skill consent prompt hanging until the job times out.
- In `gemini-invoke.yaml` and `gemini-plan-execute.yaml`, trusting the workspace ensures workspace `.gemini/settings.json` (`mcpServers.github` and `tools.core`) is loaded when folder trust is enforced in headless mode.

Assisted-by: Jetski:Gemini
@adelva1984
adelva1984 force-pushed the fix/gemini-review-trusted-folders branch from 781a3d3 to dedad6f Compare November 18, 2026 21:54
@adelva1984 adelva1984 changed the title gemini-review: pre-trust workspace in ~/.gemini/trustedFolders.json gemini: pre-trust workspace in ~/.gemini/trustedFolders.json Nov 18, 2026
@adelva1984
adelva1984 requested a review from 0405ysj November 18, 2026 22:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant