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

> A repository-level GitHub Actions secret accessible only to workflows in that repository

<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" />

## General Information

Represents a repository-level GitHub Actions secret. These are secrets defined directly on a specific repository and are only accessible to workflows running in that repository.

## 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. |
| `repository_name`            | `string`   | The name of the containing repository.                                                                  |
| `repository_id`              | `string`   | The node\_id of the containing repository.                                                              |
| `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.                                                                       |
| `visibility`                 | `string`   | The secret's visibility scope.                                                                          |
| `query_visible_repositories` | `string`   | Query for visible repositories.                                                                         |

## Diagram

```mermaid theme={null}
graph LR
    n0["GH_Repository"]
    n1["GH_RepoSecret"]
    n2["GH_WorkflowJob"]
    n3["GH_WorkflowStep"]
    n0 -.->|GH_Contains| n1
    n0 -->|GH_HasSecret| n1
    n2 -.->|GH_UsesSecret| n1
    n3 -.->|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.
</Note>

```mermaid theme={null}
flowchart LR

    GH_RepoSecret["GH_RepoSecret"]
    GH_Repository["GH_Repository"]
    GH_WorkflowJob["GH_WorkflowJob"]
    GH_WorkflowStep["GH_WorkflowStep"]
    GH_Repository -- GH_Contains --> GH_RepoSecret
    GH_Repository -- GH_HasSecret --> GH_RepoSecret
    GH_WorkflowJob -- GH_UsesSecret --> GH_RepoSecret
    GH_WorkflowStep -- GH_UsesSecret --> GH_RepoSecret
```

### Inbound Edges

| Edge Type                                                          | Source Node Types                                                                                                                            | Traversable |
| ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [GH\_Contains](/opengraph/extensions/github/edges/gh_contains)     | [GH\_Repository](/opengraph/extensions/github/nodes/gh_repository)                                                                           | ❌           |
| [GH\_HasSecret](/opengraph/extensions/github/edges/gh_hassecret)   | [GH\_Repository](/opengraph/extensions/github/nodes/gh_repository)                                                                           | ✅           |
| [GH\_UsesSecret](/opengraph/extensions/github/edges/gh_usessecret) | [GH\_WorkflowJob](/opengraph/extensions/github/nodes/gh_workflowjob), [GH\_WorkflowStep](/opengraph/extensions/github/nodes/gh_workflowstep) | ❌           |

### 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`         | -                                                  |
| `repository_name`            | `str \| None` | The name of the containing repository.             |
| `repository_id`              | `str \| None` | The node\_id of the containing repository.         |
| `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.                  |
| `visibility`                 | `str \| None` | The secret's visibility scope.                     |
| `query_visible_repositories` | `str \| None` | Query for visible repositories.                    |
