Skip to content

gemini-review: shared advisory PR review on Vertex AI - #35

Merged
Soul-Craft merged 5 commits into
mainfrom
gemini-review
Nov 23, 2026
Merged

Soul-Craft merged 5 commits into
mainfrom
gemini-review

Conversation

@Soul-Craft

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

Copy link
Copy Markdown
Contributor

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.

Sign-in Keyless: GitHub OIDC → Workload Identity provider that trusts repository_owner == SoulCraft-Org only
Access One service account, Vertex AI User (plus log writer); no key exists
Switch Org variable GEMINI_REVIEW=on; anything else stops every review (credit ends 2026-12-06)
Runners Same rule as gitleaks.yml: private → self-hosted pool, public → GitHub-hosted
Skips Drafts, fork PRs, bot authors
Gate Never a required check

This PR is the first live test (public repo, so GitHub-hosted).

🤖 Generated with Claude Code


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

…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>
@Soul-Craft
Soul-Craft requested a review from a team as a code owner November 23, 2026 00:44
…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>
@Soul-Craft Soul-Craft closed this Nov 23, 2026
@Soul-Craft Soul-Craft reopened this Nov 23, 2026
…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>
@Soul-Craft Soul-Craft closed this Nov 23, 2026
@Soul-Craft Soul-Craft reopened this Nov 23, 2026
… 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>
@Soul-Craft Soul-Craft closed this Nov 23, 2026
@Soul-Craft Soul-Craft reopened this Nov 23, 2026

@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

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 with persist-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.

Comment thread .github/workflows/gemini-review.yml Resolved
…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>
@Soul-Craft
Soul-Craft merged commit b90560f into main Nov 23, 2026
5 checks passed
@Soul-Craft
Soul-Craft deleted the gemini-review branch November 23, 2026 01:07
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