> ## 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_MatchesEnvironmentPolicy

> Branch matches this environment deployment branch policy

<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

* Traversable: ❌

| Start                                                      | Kind                         | End                                                                                          |
| ---------------------------------------------------------- | ---------------------------- | -------------------------------------------------------------------------------------------- |
| [GH\_Branch](/opengraph/extensions/github/nodes/gh_branch) | GH\_MatchesEnvironmentPolicy | [GH\_EnvironmentBranchPolicy](/opengraph/extensions/github/nodes/gh_environmentbranchpolicy) |

```mermaid theme={null}
flowchart LR
    GH_Branch["GH_Branch"]
    GH_EnvironmentBranchPolicy["GH_EnvironmentBranchPolicy"]
    GH_Branch -- GH_MatchesEnvironmentPolicy --> GH_EnvironmentBranchPolicy
```

## General Information

The non-traversable GH\_MatchesEnvironmentPolicy edge links a branch to a GitHub Environment deployment branch policy that it satisfies.

This edge is emitted when a branch name matches the pattern defined by a [GH\_EnvironmentBranchPolicy](/opengraph/extensions/github/nodes/gh_environmentbranchpolicy) node, such as `main`, `release/*`, or `release/**/*`. The edge is structural rather than directly traversable because matching a policy alone does not guarantee deployment access; the environment may still require protected branches, reviewers, wait timers, or other controls.

GH\_MatchesEnvironmentPolicy is primarily used as supporting evidence for computed [GH\_CanDeployToEnvironment](/opengraph/extensions/github/edges/gh_candeploytoenvironment) edges.

## Edge Schema

| Source                                                     | Destination                                                                                  | Traversable |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ----------- |
| [GH\_Branch](/opengraph/extensions/github/nodes/gh_branch) | [GH\_EnvironmentBranchPolicy](/opengraph/extensions/github/nodes/gh_environmentbranchpolicy) | `false`     |

## Diagram

```mermaid theme={null}
graph LR
    n0["GH_Branch"]
    n1["GH_EnvironmentBranchPolicy"]
    n0 -.->|GH_MatchesEnvironmentPolicy| n1
```
