// module 03 · Enforcement developers can't turn off
CODEOWNERS for the files that control security
Some files decide what runs in CI, what gets installed and who has to review: workflows, lockfiles, Dockerfiles, IaC, auth code and CODEOWNERS itself. This lesson creates a `security` team, rolls out a CODEOWNERS file to every repo as pull requests, validates it with the API, and turns on code owner review in the baseline ruleset. Then a PR that touches a workflow requests the security team and stays blocked until an owner approves or an admin bypasses.
Learning Objectives
- List the paths in a repo that change its security and write CODEOWNERS lines for them
- Create an org team that can own code, and give it the access CODEOWNERS needs
- Roll out a file to every repo as one pull request each, with a rerunnable script
- Validate a CODEOWNERS file with the API before and after merge
- Require code owner review in a ruleset and see what it blocks, and who can still get past it
This lesson is for enrolled learners
Log in, then enroll to read the full lesson, run its lab and take the quiz.
