Add wg-infra as ruleset bypass actor#137
Conversation
PR #131 migrated required status checks from branch protection to rulesets but only granted bypass to OrganizationAdmin. This broke manual merges for wg-infra members who previously could bypass via enforce_admins=false on branch protection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WalkthroughThe common repository module now accepts team IDs for status-check bypasses and creates corresponding GitHub ruleset actors. Four repositories pass the ChangesRuleset bypass configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 10 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (10 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
repositories.tf (1)
374-393: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winMissing ruleset bypass configuration for
wg-infra.The PR objective indicates this change restores admin bypass capabilities for the
wg-infrateam across repositories where they hold admin rights. Sincewg-infrais grantedadminpermission inrepo_osac_csi_driveras well, they will likely lose their bypass capabilities here unlessruleset_bypass_team_idsis explicitly provided.Please verify if this module should include the bypass configuration (e.g.,
ruleset_bypass_team_ids = ...) to remain consistent with the other updated repositories.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@repositories.tf` around lines 374 - 393, Add the appropriate ruleset_bypass_team_ids configuration to the repo_osac_csi_driver module for the wg-infra team, matching the established value used by other repositories where wg-infra has admin permission. Preserve the existing teams, permissions, and push_allowances settings.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@repositories.tf`:
- Around line 374-393: Add the appropriate ruleset_bypass_team_ids configuration
to the repo_osac_csi_driver module for the wg-infra team, matching the
established value used by other repositories where wg-infra has admin
permission. Preserve the existing teams, permissions, and push_allowances
settings.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: osac-project/coderabbit/.coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 3951bcd6-1d66-4301-a77d-2cfb4a760b36
📒 Files selected for processing (1)
repositories.tf
Summary
github_branch_protectiontogithub_repository_ruleset, but only granted bypass toOrganizationAdminenforce_admins = falseallowed repo admins (including wg-infra) to merge when checks were pending/failingbypass_actorswg-infra(team ID 17948400) as a bypass actor on repos where the team already has admin permission: fulfillment-service, osac-operator, osac-aap, osac-installerChanges
modules/common_repository/variables.tf: addruleset_bypass_team_idsvariable (list of team database IDs, default[])modules/common_repository/main.tf: add dynamicbypass_actorsblock for each team IDrepositories.tf: passgithub_team.all["wg-infra"].idto the 4 affected reposTest plan
tofu planshows 4 rulesets updated with new bypass actor, no other changes🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Configuration