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

> An organization-level GitHub Actions secret that can be scoped to all, private, or selected repositories

![Applies to BloodHound Enterprise and CE](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-AND-community-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=ad49a576589f4d2a8081df77d07fdf56)

## General Information

Represents an organization-level GitHub Actions secret. All and private/internal visibility uses shared organization-secret [GH\_Scope](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_scope.md) nodes; arbitrary selected visibility uses direct [GH\_HasSecret](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_hassecret.md) relationships from repositories.

## Properties

| Property | Type | Description |
| - | - | - |
| `name` | `string` | The node name used for matching and display. |
| `displayname` | `string` | The human-readable display name. |
| `environmentid` | `string` | The identifier of the GitHub environment where this node was collected. |
| `last_seen` | `datetime` | The timestamp when this node was last observed during collection. |
| `node_id` | `string` | The stable identifier used as the OpenGraph node ID; this is the native GitHub node ID where available. |
| `visibility` | `string` | The secret's visibility scope: `all` (all repos), `private` (private and internal repos), or `selected` (specific repos). |
| `environment_name` | `string` | The name of the environment (GitHub organization). |
| `created_at` | `string` | When the secret was created. |
| `updated_at` | `string` | When the secret was last updated. |
| `query_visible_repositories` | `string` | Query for visible repositories. |
| `selected_repositories_url` | `string` | The selected repositories url property. |

## Diagram

```mermaid theme={null}
graph LR
    n0["GH_OrgRole"]
    n1["GH_OrgSecret"]
    n2["GH_Organization"]
    n3["GH_Repository"]
    n4["GH_Scope"]
    n5["GH_WorkflowJob"]
    n6["GH_WorkflowStep"]
    n2 -.->|GH_Contains| n1
    n3 -->|GH_HasSecret| n1
    n0 -->|GH_CanReadSecret| n4
    n4 -->|GH_ScopedTo| n1
    n5 -->|GH_CanAccessSecret| n1
    n5 -.->|GH_UsesSecret| n1
    n6 -.->|GH_UsesSecret| n1
```

## Edges

> [!NOTE]
>
> The tables below list edges defined by the GitHub extension only. Additional edges to or from this node may be created by other extensions.

```mermaid theme={null}
flowchart LR

    GH_Organization["GH_Organization"]
    GH_OrgRole["GH_OrgRole"]
    GH_OrgSecret["GH_OrgSecret"]
    GH_Repository["GH_Repository"]
    GH_Scope["GH_Scope"]
    GH_WorkflowJob["GH_WorkflowJob"]
    GH_WorkflowStep["GH_WorkflowStep"]
    GH_Organization -- GH_Contains --> GH_OrgSecret
    GH_OrgRole -- GH_CanReadSecret --> GH_OrgSecret
    GH_Repository -- GH_HasSecret --> GH_OrgSecret
    GH_Scope -- GH_ScopedTo --> GH_OrgSecret
    GH_WorkflowJob -- GH_CanAccessSecret --> GH_OrgSecret
    GH_WorkflowJob -- GH_UsesSecret --> GH_OrgSecret
    GH_WorkflowStep -- GH_UsesSecret --> GH_OrgSecret
```

### Inbound Edges

| Edge Type | Source Node Types | Traversable |
| - | - | - |
| [GH\_CanAccessSecret](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_canaccesssecret.md) | [GH\_WorkflowJob](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_workflowjob.md) | ✅ |
| [GH\_CanReadSecret](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_canreadsecret.md) | [GH\_OrgRole](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_orgrole.md) | ✅ |
| [GH\_Contains](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_contains.md) | [GH\_Organization](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_organization.md) | ❌ |
| [GH\_HasSecret](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_hassecret.md) | [GH\_Repository](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_repository.md) | ✅ |
| [GH\_ScopedTo](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_scopedto.md) | [GH\_Scope](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_scope.md) | ✅ |
| [GH\_UsesSecret](https://bloodhound.specterops.io/opengraph/extensions/github/edges/gh_usessecret.md) | [GH\_WorkflowJob](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_workflowjob.md), [GH\_WorkflowStep](https://bloodhound.specterops.io/opengraph/extensions/github/nodes/gh_workflowstep.md) | ❌ |

### Outbound Edges

No outbound edges are defined by the GitHub extension for this node.

## Properties

| Property | Type | Description |
| - | - | - |
| `name` | `str` | - |
| `displayname` | `str` | - |
| `environmentid` | `str` | - |
| `last_seen` | `datetime` | - |
| `node_id` | `str` | - |
| `visibility` | `str \| None` | The secret's visibility scope: `all` (all repos), `private` (private and internal repos), or `selected` (specific repos). |
| `environment_name` | `str \| None` | The name of the environment (GitHub organization). |
| `created_at` | `str \| None` | When the secret was created. |
| `updated_at` | `str \| None` | When the secret was last updated. |
| `query_visible_repositories` | `str \| None` | Query for visible repositories. |
| `selected_repositories_url` | `str \| None` | The selected repositories url property. |
