Repository navigation
gemini-review: no Docker needed; review tools only - #36
Merged
Merged
Conversation
… 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>
There was a problem hiding this comment.
📋 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_TEMPalongside escaping for${GITHUB_TOKEN}is well-executed and validated withjq.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the reviewer on the self-hosted pool, found on SoulCraft-Org/infrastructure#12:
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
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.