Skip to content

gemini-review: no Docker needed; review tools only - #36

Merged
Soul-Craft merged 1 commit into
mainfrom
gemini-review-no-docker
Nov 23, 2026
Merged

Soul-Craft merged 1 commit into
mainfrom
gemini-review-no-docker

Conversation

@Soul-Craft

@Soul-Craft Soul-Craft commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the reviewer on the self-hosted pool, found on SoulCraft-Org/infrastructure#12:

Problem Fix
No Docker on the self-hosted runners, so GitHub's review tools never started GitHub MCP server v0.27.0 release binary, SHA-256 checked, per architecture
Without them, Gemini tried workspace files, including the short-lived Google credential file (refused by its guard) Only the three review tools remain: no shell, no file reads or writes, no web

This PR's own review run (public, GitHub-hosted) checks the binary path; infrastructure#12 is re-run after merge for the self-hosted path.

🤖 Generated with Claude Code


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… on the self-hosted pool); review tools only

On infrastructure#12 the self-hosted run had no Docker, so the GitHub tools never started, and Gemini then
tried workspace files, the short-lived Google credential file among them (refused by its workspace guard).
Now only the three review tools exist: no shell, no file reads or writes, no web.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Paul Foley <8870031+Soul-Craft@users.noreply.github.com>
@Soul-Craft
Soul-Craft requested a review from a team as a code owner November 23, 2026 01:16

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review Summary

This pull request updates the gemini-review.yml workflow to run the GitHub MCP server directly via its release binary instead of relying on Docker, resolving compatibility issues on self-hosted runners without Docker support. In addition, it tightens tool execution permissions by excluding file I/O, search, web, and shell execution tools to prevent unintended access to workspace secrets such as short-lived credentials. The implementation is clean, secure, and properly verified with architecture-specific SHA-256 checksums.

🔍 General Feedback

  • Supply-Chain Integrity: Verifying the downloaded GitHub MCP server tarball against explicit SHA-256 checksums for both x86_64 and arm64 architectures prior to extraction is an excellent security measure.
  • Principle of Least Privilege: Restricting Gemini CLI tools exclusively to the required pull request review tools prevents the model from interacting with local runner files or workspace authentication tokens.
  • Configuration Hygiene: The use of unquoted heredoc variable expansion for $RUNNER_TEMP alongside escaping for ${GITHUB_TOKEN} is well-executed and validated with jq.

@Soul-Craft
Soul-Craft merged commit 824b6cc into main Nov 23, 2026
7 checks passed
@Soul-Craft
Soul-Craft deleted the gemini-review-no-docker branch November 23, 2026 01:21
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