1.1.17 Ensure protected branch deletions are denied
ID |
cis_sscs/branch_deletions_denied |
Severity |
critical |
Category |
source_code/code_changes |
Levels |
|
Optional |
false |
Tags |
branch-protection, security, source-code, supply-chain |
Rationale
When enabling deletion of a protected branch, any user with at least push access to the repository can delete a branch. This can be potentially dangerous, as a simple human mistake or a hacked account can lead to data loss if a branch is deleted. It is therefore crucial to prevent such incidents by denying protected branch deletion.