Skill 8.2.8
Code repositories
Key Concepts
Controls include strong authentication with MFA, least-privilege access, branch protection rules that require reviews and passing checks before merging, signed commits, audit logging and backups. Public repositories must not expose internal code by mistake.
Secrets such as passwords and API keys must never be committed; secret scanning detects them, and exposed secrets must be revoked, not just deleted from history.