Repository navigation
gemini-review: shared advisory PR review on Vertex AI - #35
Merged
Merged
Conversation
…rial credit) Keyless Workload Identity sign-in for SoulCraft-Org repositories only, a service account with Vertex AI User only, GEMINI_REVIEW=on as the org-wide switch, the gitleaks runner rule, actions pinned by SHA. Never a required check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Paul Foley <8870031+Soul-Craft@users.noreply.github.com>
…ned, nested ones too) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Paul Foley <8870031+Soul-Craft@users.noreply.github.com>
…s repo and PR Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Paul Foley <8870031+Soul-Craft@users.noreply.github.com>
… rejected); trust the extension folder 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
Adds a reusable and caller workflow for advisory Gemini PR reviews powered by Google Cloud Vertex AI via keyless Workload Identity Federation. The workflow is securely constrained with least-privilege permissions, read-only MCP access, disabled code-modification tools, and strict skip conditions for drafts, bots, and external forks.
🔍 General Feedback
- Strong Security Posture: Disabling mutating tools (
run_shell_command,write_file,replace), restricting MCP tools, running withpersist-credentials: false, and strictly skipping fork PRs to prevent untrusted OIDC token exchange or credit consumption is excellent. - Commit Pinning: Adheres strictly to the organization's convention of pinning all GitHub Actions to full commit SHAs with version annotations.
- Fail-Safe Design: Making the review purely advisory (not a required check) and gated on
vars.GEMINI_REVIEW == 'on'ensures that trial credit expiration or intermittent failures never block repository development.
…rs keep files), from Gemini's own review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Paul Foley <8870031+Soul-Craft@users.noreply.github.com>
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.
Adds
.github/workflows/gemini-review.yml: an advisory Gemini review on each pull request, paid from the Google Cloud free-trial credit through Vertex AI.repository_owner == SoulCraft-OrgonlyGEMINI_REVIEW=on; anything else stops every review (credit ends 2026-12-06)This PR is the first live test (public repo, so GitHub-hosted).
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.