Skip to content

Harden Claude workflow permission gate#190

Merged
justin808 merged 1 commit into
mainfrom
codex/harden-claude-permission-gate
Jul 11, 2026
Merged

Harden Claude workflow permission gate#190
justin808 merged 1 commit into
mainfrom
codex/harden-claude-permission-gate

Conversation

@justin808

Copy link
Copy Markdown
Member

Summary

  • add a workflow-level authorize_claude_actor permission gate before Claude Code runs
  • require both the workflow actor and original Claude requester to have write/admin repository permission
  • keep the existing Claude trigger condition on the authorization job and only run the secret-bearing Claude job when authorized

Changed workflows

  • .github/workflows/claude.yml

Validation

  • actionlint passed for the changed workflow file(s)

Rollout context

This mirrors the verified gate from shakacode/react_on_rails#4533.
Positive path was exercised on react_on_rails#4534; negative read-only actor attempts on react_on_rails#4540 blocked before the secret-bearing Claude job.

@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@justin808, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 56 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e87fc9b0-2797-499b-93d1-9dc80b7d332b

📥 Commits

Reviewing files that changed from the base of the PR and between 27315f6 and dedcf2e.

📒 Files selected for processing (1)
  • .github/workflows/claude.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/harden-claude-permission-gate

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🚀 Quick Review App Commands

Welcome! Here are the commands you can use in this PR:
They require the repository to have cpflow review apps configured, including the CPLN_TOKEN_STAGING secret.

+review-app-deploy

Deploy your PR branch for testing.

+review-app-delete

Remove the review app when done.

+review-app-help

Show detailed instructions, environment setup, and configuration options.

Comment +review-app-help for full setup details.

@justin808
justin808 merged commit 25246ab into main Jul 11, 2026
9 checks passed
@justin808
justin808 deleted the codex/harden-claude-permission-gate branch July 11, 2026 02:53
@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown

✅ Review App Deleted

Review app for PR #190 is deleted

🎮 Control Plane Console
📋 View Workflow Logs

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