Check ID:
Provider: GitHub
Service:
Severity: MEDIUM
Categories:
Resource type:
repository_has_codeowners_fileProvider: GitHub
Service:
repositorySeverity: MEDIUM
Categories:
software-supply-chainResource type:
NotDefinedWhat this check verifies
GitHub repositories declare code ownership via aCODEOWNERS file mapping file patterns to users or teams. This evaluation checks whether such a file exists in standard locations (/, .github/, or docs/) to enable automatic reviewer assignment.
Risk
MissingCODEOWNERS undermines integrity and separation of duties:
- PRs can merge without accountable, domain reviews
- Critical paths risk unauthorized or low-quality changes This raises software supply chain exposure, enabling code tampering, hidden backdoors, and unsafe config modifications.
Recommendation
Define and maintain aCODEOWNERS file mapping sensitive paths to responsible teams or users, preferring teams for resilience. Combine with branch protections requiring code-owner reviews to enforce separation of duties and least privilege. Keep entries current and cover critical directories to avoid pattern gaps.
Remediation
- CLI
- Terraform
- Dashboard steps
References
- https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
- https://github.blog/news-insights/product-news/introducing-code-owners/
Where this check fires
This check runs on every scheduled scan against your GitHub account. Findings appear at Cloud Security → Findings filterable byCheck ID = repository_has_codeowners_file. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to GitHub checks