Saturday 05 December 2026 20:36:58 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Protected branch

A repository branch that restricts direct changes.

A protected branch is a repository branch with rules that block direct, unchecked changes. Projects usually require pull requests, code review, successful tests, signed commits, or approval from specific maintainers before code can be merged. This reduces the risk of accidental breakage and makes it harder for one account to push unsafe changes straight into a release line.

In cyber security, protected branches are a key control for source-code integrity and insider-risk reduction. They help defend against tampering, privilege abuse, and rushed or unauthorized edits that could disrupt builds or introduce malicious code. In real attacks, an attacker who gains a contributor account may still be stopped if the target branch is protected. As a defense, teams combine branch protections with limited write access, audit logs, mandatory reviews, and release checks so that changes remain traceable and reversible.

← WIKICROOK index