How do you let a bot (Renovate, release-please) merge without weakening protection?
AdvancedProductionBranch protection, rulesets, CODEOWNERS and review at scale
Answer
Use a GitHub App with only the permissions it needs and add that app to the ruleset bypass list narrowly, or better, keep protection intact and enable auto-merge on PRs that pass required checks and an approval from a bot-approver workflow for low-risk updates (patch bumps). Never give a long-lived PAT with admin scope to a bot.
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