Severityhigh
Servicerepository
Ensure that the repository denies default branch deletion.
Risk
Allowing the deletion of protected branches by users with push access increases the risk of accidental or intentional branch removal, potentially resulting in significant data loss or disruption to the development process.
Run this check with Prowler CLI
prowler github --checks repository_default_branch_deletion_disabled
Recommendation
Deny the ability to delete protected branches to ensure the preservation of critical branch data. This prevents accidental or malicious deletions and helps maintain the integrity and stability of the repository.
Source Code
Resource Type
GitHubRepository