> ## Documentation Index
> Fetch the complete documentation index at: https://bloodhound.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GH_ProtectedBy

> Branch protection rule protects this branch

<img noZoom src="https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max&auto=format&n=tTIczgde9H07oLXf&q=85&s=ad49a576589f4d2a8081df77d07fdf56" alt="Applies to BloodHound Enterprise and CE" width="482" height="45" data-path="assets/enterprise-AND-community-edition-pill-tag.svg" />

## Edge Schema

* Source: [GH\_BranchProtectionRule](/opengraph/extensions/github/nodes/gh_branchprotectionrule)
* Destination: [GH\_Branch](/opengraph/extensions/github/nodes/gh_branch)
* Traversable: ❌

## General Information

The non-traversable GH\_ProtectedBy edge represents that a branch protection rule applies to a specific branch. This edge links protection rules to the branches they govern. Understanding which protections apply to a branch is critical for determining the effective access model — protections such as required reviews, status checks, and push restrictions directly impact who can modify a branch. This edge is consumed by the computed branch-access edges to determine effective push access; the computed [GH\_CanWriteBranch](/opengraph/extensions/github/edges/gh_canwritebranch) and [GH\_CanEditProtection](/opengraph/extensions/github/edges/gh_caneditprotection) edges carry traversability instead.

```mermaid theme={null}
graph LR
    node1("GH_Repository GitHound")
    node2("GH_Branch main")
    node3("GH_BranchProtectionRule main-protection")
    node4("GH_Branch develop")
    node5("GH_BranchProtectionRule develop-protection")
    node1 -- GH_HasBranch --> node2
    node1 -- GH_HasBranch --> node4
    node3 -- GH_ProtectedBy --> node2
    node5 -- GH_ProtectedBy --> node4
```
