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

> Reusable scope applies to a repository, organization runner group, organization secret, or organization variable

<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\_Scope](/opengraph/extensions/github/nodes/gh_scope) | GH\_ScopedTo | [GH\_OrgVariable](/opengraph/extensions/github/nodes/gh_orgvariable) |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | GH\_ScopedTo | [GH\_OrgSecret](/opengraph/extensions/github/nodes/gh_orgsecret) |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | GH\_ScopedTo | [GH\_Repository](/opengraph/extensions/github/nodes/gh_repository) |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | GH\_ScopedTo | [GH\_OrgRunnerGroup](/opengraph/extensions/github/nodes/gh_orgrunnergroup) |

```mermaid theme={null}
flowchart LR
    GH_OrgRunnerGroup["GH_OrgRunnerGroup"]
    GH_OrgSecret["GH_OrgSecret"]
    GH_OrgVariable["GH_OrgVariable"]
    GH_Repository["GH_Repository"]
    GH_Scope["GH_Scope"]
    GH_Scope -- GH_ScopedTo --> GH_OrgRunnerGroup
    GH_Scope -- GH_ScopedTo --> GH_OrgSecret
    GH_Scope -- GH_ScopedTo --> GH_OrgVariable
    GH_Scope -- GH_ScopedTo --> GH_Repository
```

## General Information

The traversable GH\_ScopedTo edge enumerates an asset included in a reusable [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope). It carries an incoming capability from a target scope to each asset in the represented set. Repository scopes contain collected repositories, runner-group scopes contain organization-facing runner groups sharing repository eligibility, and organization-secret/variable scopes contain assets sharing repository availability.

## Edge Schema

| Source | Destination | Traversable |
| - | - | - |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | [GH\_OrgRunnerGroup](/opengraph/extensions/github/nodes/gh_orgrunnergroup) | `true` |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | [GH\_OrgSecret](/opengraph/extensions/github/nodes/gh_orgsecret) | `true` |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | [GH\_OrgVariable](/opengraph/extensions/github/nodes/gh_orgvariable) | `true` |
| [GH\_Scope](/opengraph/extensions/github/nodes/gh_scope) | [GH\_Repository](/opengraph/extensions/github/nodes/gh_repository) | `true` |

## Diagram

```mermaid theme={null}
graph LR
    n0["GH_Scope"]
    n1["GH_OrgRunnerGroup"]
    n2["GH_OrgSecret"]
    n3["GH_OrgVariable"]
    n4["GH_Repository"]
    n0 -->|GH_ScopedTo| n1
    n0 -->|GH_ScopedTo| n2
    n0 -->|GH_ScopedTo| n3
    n0 -->|GH_ScopedTo| n4
```
