Chapter 9: GitHub Actions Hands-On
9.8 Branch protection and required checks
By Ravindra Bagale · Last updated:
In GitHub repo settings (when available on your plan):
- Protect
main.
- Require a pull request before merge.
- Require the badge API CI status check to pass.
This turns Chapter 8's "quality gate" into a real button the team cannot casually skip.