Code repository

A version-controlled store for source code and related files, such as a Git repository, that records every change and its author; its access controls protect the integrity of the software.

A code repository is a store for source code and related files, such as build scripts, configuration and infrastructure definitions, managed by a version control system. Git is widely used, often hosted on platforms such as GitHub or GitLab. The repository records each change, who made it and when, so an earlier version can be recovered and a line of code can be traced to its author. The ISC2 outline lists code repositories under 8.2, security controls in software development ecosystems.

Because the repository holds the organisation’s software before it is built, it is a valuable target. NIST SP 800-218, the Secure Software Development Framework, asks organisations to store all forms of code under least-privilege access, and gives commit signing and owner review of changes as examples. Common controls include multi-factor authentication, branch protection that requires review before a merge, scanning for credentials committed by mistake (a problem secrets management aims to prevent), and care over what is made public. The repository is also the starting point of the CI/CD pipeline and a core tool of software configuration management.

Exam relevance: a scenario about hard-coded credentials found in a public repository, or unreviewed changes reaching the main branch, is likely to turn on repository controls. Candidates are expected to connect the repository with integrity, accountability and change control.