# Repository and Branch Protection Governance

> Master repository security, branch protection rules, code owner enforcement, and preventing unauthorized pipeline modifications.

Canonical: https://codelivly.com/rooms/repository-and-branch-protection-governance
Last updated: 2026-10-29

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 2 h 30 min |
| XP | 1402 |

This module focuses on the foundational governance controls required to secure the source code repository itself. You will learn how to configure robust branch protection rules, enforce mandatory code reviews, implement CODEOWNERS for critical files (like CI/CD workflows and infrastructure-as-code), and prevent unauthorized force pushes or secret commits. The module culminates in a hands-on guided lab where you will audit a vulnerable repository configuration, implement comprehensive branch protection, and enforce automated compliance checks to secure the software supply chain at its origin.

## Lessons

1. What Is Repository Governance and Why Does It Matter (30 min)
2. Branch Protection, CODEOWNERS and Required Reviews (30 min)
3. Signed Commits and Verified Identities (30 min)
4. Organization-Wide Policies and Audit Logs (30 min)
5. Guided Lab: Locking Down a Repository End to End (30 min)

## Related

- [Learning path: Secrets Management and Pipeline Hardening](https://codelivly.com/learning-paths/secrets-management-and-pipeline-hardening)
- [All rooms](https://codelivly.com/rooms)
