Interview Prep/Git & GitHub/Branch protection, rulesets, CODEOWNERS and review at scale

Design a least-privilege access model for GitHub across 50 teams.

AdvancedProductionBranch protection, rulesets, CODEOWNERS and review at scale
Answer

Org owners are a tiny group; everything else is by team with roles Read, Triage, Write, Maintain and Admin granted through IdP-synced teams (SAML SSO + SCIM). Default repo permission is None or Read, outside collaborators are rare and time-boxed, admin rights belong to a platform team, and custom repository roles cover odd cases. Quarterly access reviews are generated from the API.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branch protection, rulesets, CODEOWNERS and review at scale