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.
More on Branch protection, rulesets, CODEOWNERS and review at scale
What branch protection settings do you enable on `main` by default?BeginnerWhy do rulesets win over classic branch protection for an organisation?IntermediateHow do you roll out a new org-wide ruleset without breaking 300 repos?AdvancedHow do you protect release tags from being moved or deleted?IntermediateHow do you structure CODEOWNERS for a large org?IntermediateCODEOWNERS says three teams own a path but PRs stall waiting for any one of them. How do you fix it?Advanced