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

> A GitHub App definition representing the registered application. The app owner controls the private key used to generate installation tokens.

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

Represents a GitHub App definition — the registered application entity. The app owner holds the private key that can generate installation access tokens for **every** [GH\_AppInstallation](/opengraph/extensions/github/nodes/gh_appinstallation) of this app. If the private key is compromised, all installations across all organizations are affected.

App definitions are retrieved via the public `GET /apps/{app_slug}` endpoint (no authentication required) after discovering unique app slugs from the organization's app installations.

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

### Inbound Edges

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

### Outbound Edges

| Edge Type                                                            | Destination Node Types                                                       | Traversable |
| -------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ----------- |
| [GH\_InstalledAs](/opengraph/extensions/github/edges/gh_installedas) | [GH\_AppInstallation](/opengraph/extensions/github/nodes/gh_appinstallation) | ✅           |

## Properties

| Property Name        | Data Type | Description                                                             |
| -------------------- | --------- | ----------------------------------------------------------------------- |
| objectid             | string    | Composite identifier: `A_kwHOABLL_s4ABJ8V`.                             |
| id                   | integer   | The GitHub App's numeric ID.                                            |
| name                 | string    | The display name of the app.                                            |
| slug                 | string    | The app's URL-friendly slug identifier.                                 |
| client\_id           | string    | The app's OAuth client ID.                                              |
| node\_id             | string    | The app's GraphQL node ID.                                              |
| description          | string    | The app's description.                                                  |
| external\_url        | string    | The app's external homepage URL.                                        |
| html\_url            | string    | URL to the app's GitHub page.                                           |
| owner\_login         | string    | The login of the user or organization that owns the app.                |
| owner\_node\_id      | string    | The node\_id of the user or organization that owns the app.             |
| owner\_type          | string    | The type of the owner (e.g., `User`, `Organization`).                   |
| created\_at          | datetime  | When the app was created.                                               |
| updated\_at          | datetime  | When the app was last updated.                                          |
| permissions          | string    | JSON string of the default permissions the app requests.                |
| events               | string    | JSON string of the default webhook events the app subscribes to.        |
| installations\_count | integer   | The total number of installations of this app across all organizations. |

## Diagram

```mermaid theme={null}
flowchart TD
    GH_App[fa:fa-cube GH_App]
    GH_AppInstallation[fa:fa-plug GH_AppInstallation]
    GH_Repository[fa:fa-box-archive GH_Repository]
    GH_Organization[fa:fa-building GH_Organization]

    GH_App -->|GH_InstalledAs| GH_AppInstallation
    GH_Organization -.->|GH_Contains| GH_AppInstallation
    GH_AppInstallation -.->|GH_CanAccess| GH_Repository

```
