1.1.9 Ensure all checks have passed before merging new code
ID |
cis_sscs/status_checks |
Severity |
critical |
Category |
source_code/code_changes |
Levels |
|
Optional |
false |
Tags |
branch-protection, slsa-4, source-code, supply-chain |
Description
Ensure that before a code change request can be merged to the code base, all predefined checks must successfully pass.
Rationale
On top of manual reviews of code changes, a code protect should contain a set of prescriptive checks which validate each change. Organizations should enforce those status checks so that changes can only be introduced if all checks have successfully passed. This set of checks should serve as the absolute quality, stability, and security conditions which must be met in order to merge new code to a project.
Code changes in which all checks do not pass successfully would not be able to be pushed into the code base of the specific code repository.