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

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.

All Git & GitHub questions Roadmap: Git & GitHub

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