CTL-079 · human

Protected Pipeline Files

Require owner review for changes to workflow files and shared templates, with no admin bypass.

TechnicalEffort LowEffectiveness High

Pipeline files carry production power, so they need production-grade review. CODEOWNERS rules that name the platform team for .github/workflows/ and shared template repos, enforced by a ruleset with no bypass, mean neither an insider nor an agent can change what runs without a second person.

This also protects against agents that try to make CI pass by editing it. Watch the org-level allowed actions list closely, since changing it is a quiet way around pinning.

Put it in place

  1. 01Add CODEOWNERS entries for `.github/workflows/`, `.gitlab-ci.yml`, `Jenkinsfile` and CI template repos.
  2. 02Enable "Require review from Code Owners" in a ruleset that applies to admins and bots.
  3. 03Pin third-party actions to full commit SHAs and allow only approved actions at the org level.
  4. 04Do not run workflows with secrets on pull requests from forks.

Counters 3 techniques