> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resolve.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# App for GitHub

> [!NOTE]
>
> For an overview of Git integration options (auth types, Cloud vs Satellite), see [Git Integration](https://docs.resolve.ai/git).

This page covers connecting ResolveAI to your code on GitHub, in all three ways customers commonly run it:

* **github.com via the Resolve-managed app**, fastest path. One-click install, no app credentials to manage. See [Connect via the Resolve-managed app](#connect-via-the-resolve-managed-app).
* **Bring-your-own GitHub App**, for GitHub Enterprise Server (on-prem), GitHub Enterprise Cloud, or github.com when you want to operate the app yourself. See [Bring Your Own GitHub App](#bring-your-own-github-app).
* **Token auth**, fine-grained or classic PAT for any GitHub variant; useful for mixed-provider setups. See [Git Integration](https://docs.resolve.ai/git) for token-auth setup.

## How it works

ResolveAI integrates with GitHub through a GitHub App. Once installed:

* GitHub automatically issues a **short-lived installation token** per request. You never manage or rotate personal access tokens. ResolveAI handles token lifecycle and refresh behind the scenes.
* The agent **pulls in relevant code, commits, and pull requests** as part of an investigation to help you quickly zero in on the root cause.
* You can **ask questions that span your telemetry and your codebase**, and ResolveAI connects the dots for you.
* When you ask for a fix, Resolve **proposes code changes and opens a pull request for your review**. It never pushes commits or merges on its own, remediation is always a user-invoked, review-first flow. This is why the app needs write access on code and pull requests (see [Step 3](#step-3-set-repository-permissions)).
* Resolve can **trigger GitHub Actions workflows**, dispatching, retrying, or cancelling runs so an investigation can carry through to a deployment or a rollback. This is an opt-in feature, currently in **Preview**, contact [help@resolve.ai](mailto:help@resolve.ai) if you want it enabled.

***

## Connect via the Resolve-managed app

Use this on **github.com** when you can install the Resolve-managed GitHub App. It's the fastest path, no app credentials, no private key, no base URL.

> [!NOTE]
>
> Prerequisite: log in to your ResolveAI account first, then go to the Integrations page.

1. Log in to the ResolveAI App at [agent.resolve.ai](https://agent.resolve.ai/)
2. Open the [Git Integration](https://agent.resolve.ai/integrations/git/connect) page
3. Create a new integration, add a **Name** and click **Install Application**
4. In GitHub, pick all or a subset of your repositories in the dropdown and click **Save**

![Select a GitHub repo](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/github-connect.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=7260de866f849958ea8852c3310675bd)

The Resolve-managed app requests the same permission set documented under [Step 3: Set repository permissions](#step-3-set-repository-permissions) below.

***

## Bring Your Own GitHub App

Create a GitHub App **you** own, install it on your organization, and connect it to Resolve via the Git integration's `ghe` auth type.

The same procedure works for **all GitHub variants**:

* **github.com**, when you'd rather operate the app yourself instead of installing the Resolve-managed one (compliance, audit, scoped permissions)
* **GitHub Enterprise Cloud**
* **GitHub Enterprise Server** (on-prem), including air-gapped instances reachable only from inside your network (use a Satellite)

### Step 1: Navigate to Developer Settings for the org account

1. Log in to your GitHub instance (github.com or your GHE Server URL).
2. Navigate to your organization's main page.
3. In the left sidebar, click **Settings**.
4. Click **Developer settings** > **GitHub Apps**.

![GitHub Apps page in organization settings](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/01-github-apps-org-settings.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=80e640a7ec8cb1d115c445ccaa7e0b8a)

### Step 2: Click on New GitHub App

Click **New GitHub App** and fill in the basic details:

* **GitHub App name**: e.g. `ResolveAI` (must be unique on the instance)
* **Homepage URL**: `https://resolve.ai/`
* **Webhook**: uncheck **Active**, Resolve does not consume GitHub webhooks

![Register new GitHub App form](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/02-register-new-github-app.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=977aab2274f964bc85e3dbf1e062437c)

### Step 3: Set repository permissions

Grant the GitHub App the following repository permissions:

> **Read** access to: checks, commit statuses, deployments, discussions, issues, merge queues, and metadata
>
> **Read and write** access to: code (Contents), pull requests, and actions

The read scopes let Resolve pull code and investigation context. The read-and-write scopes on code and pull requests let it propose code changes and open pull requests for your review. Read and write on actions backs workflow triggering, which is in Preview and off unless enabled for your organization.

To keep specific workflows out of reach, scope the app installation so it excludes those repositories. Repository selection, not the permission level, is the lever here.

> [!NOTE]
>
> Granting only **Read** on code and pull requests keeps Resolve in investigate-only mode: it cannot open PRs, and remediation fails at runtime.

Per-permission detail:

| Permission | Access | What it enables |
| - | - | - |
| **Actions** | Read & write | **Read**: reading GitHub Actions workflow runs and workflow definitions. **Write**: dispatching, retrying, and cancelling workflow runs for deployments and rollbacks, available only once the Preview feature is enabled for your organization |
| **Checks** | Read | Reading check run results and PR check status |
| **Commit statuses** | Read | Commit-level CI status |
| **Contents (code)** | Read & write | **Read**: cloning, file reads, history, diffs. **Write**: pushing the branch that backs a proposed change |
| **Deployments** | Read | Deployment history, environment context |
| **Discussions** | Read | Repo-level discussions if referenced in investigations |
| **Issues** | Read | Issue context referenced in PRs / investigations |
| **Merge queues** | Read | Merge queue state on PRs |
| **Metadata** | Read | Mandatory base permission required for any GitHub App |
| **Pull requests** | Read & write | **Read**: PR metadata, diffs, comments, file contents. **Write**: opening pull requests for your review |

> [!NOTE]
>
> **Updated permission.** **Actions** is now **Read and write**, which additionally backs workflow triggering. If you installed Resolve's app before this change, accept the prompt to apply the updated permissions on the existing installation, no reinstall is required.

### Step 4: Collect credentials and generate a private key

After saving, capture from the app settings page:

1. **App ID**, shown on the **General** tab
2. **Private key**, scroll down to **Private keys** and click **Generate a private key**; a `.pem` file downloads. Store it somewhere safe, GitHub will not show it again.

![App ID and Client ID on General tab](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/03-app-id-client-id.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=a48c990ef2ffd8419ac8f216617b0bb3)

![Generate a private key section](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/04-generate-private-key.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=692042b7804799ffb2b8134e33bacc04)

### Step 5: Install the GitHub App

From the app settings page:

1. Click **Edit** on the app you just created (or **Install App** in the left sidebar).
2. Click **Install** next to your organization.
3. Choose **All repositories** or **Only select repositories** and pick the repos you want Resolve to access.

![GitHub Apps list showing the new app](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/05-github-apps-list.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=634b0ba67c07be672eb56af3223f60b6)

![Install App page](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/06-install-app-step1.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=bde2c0d00851c82bfebf97565ad53c43)

![Choose repositories and confirm permissions](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/07-install-app-permissions.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=b00229c687117a2f6b37c8175a804cee)

> [!NOTE]
>
> The permission summary GitHub shows on this screen mirrors exactly what you configured in [Step 3](#step-3-set-repository-permissions). Confirm it matches the full recommended set: **Read and write** on **code** and **pull requests** (this is what enables PR creation), **Read and write** on **actions**, plus **Read** on checks, commit statuses, deployments, discussions, issues, merge queues, and metadata. An older install may show a narrower summary, for example read-only on actions. If so, return to the app's **Permissions & events** settings, add the missing permissions, and accept the update prompt on the existing installation (no reinstall needed).

### Step 6: Collect the Installation ID and base URL

#### Installation ID

Path: **Profile picture > Settings > Applications > Configure** (on the app you just created). The installation ID is the trailing number in the URL.

Example: `https://github.com/organizations/<your-org>/settings/installations/84995228`, installation ID is `84995228`.

![Installation URL containing the installation ID](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/08-installation-id-url.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=64a691b0aa0334b4b99336872e4194ae)

#### API base URL

| GitHub variant | Base URL |
| - | - |
| github.com | `https://api.github.com` |
| GitHub Enterprise Cloud (your-org.ghe.com) | `https://api.your-org.ghe.com` |
| GitHub Enterprise Server (v2.5+) | `https://github.your-company.com/api/v3` |

For older GHE Server versions or custom-overridden base URLs, contact your GitHub administrator.

### Step 7: Configure the Resolve integration

Connect the BYO app to Resolve through the Git integration's `ghe` auth type. Pick **SaaS** if your GitHub instance is reachable from the public internet, or **Satellite** if it lives inside your network.

> [tab] SaaS
>
> ### Connect via Resolve UI (Cloud)
>
> 1. Open [**Git Integrations**](https://agent.resolve.ai/integrations/git/edit).
> 2. Create a **Cloud** Git connection.
> 3. Select the **GHE** auth tab.
> 4. Fill in the four fields:
>    * **API base URL**, from [Step 6](#api-base-url)
>    * **App ID**, from [Step 4](#step-4-collect-credentials-and-generate-a-private-key)
>    * **Installation ID**, from [Step 6](#installation-id)
>    * **Private key**, paste the PEM contents of the file from [Step 4](#step-4-collect-credentials-and-generate-a-private-key)
> 5. Save and verify the health check and repository listing.
>
>    ![Connect Git (Cloud) modal with the GHE tab selected](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/09-saas-ghe-modal.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=fcb26be9978eb7b62ff5a6b67482d52d)
>
> For full Cloud setup details (including JSON examples), see [Git on Cloud](https://docs.resolve.ai/git-on-cloud.md).

> [tab] Satellite
>
> ### Connect via Resolve Satellite
>
> Use this when your GitHub instance is only reachable from inside your network, or when you need code to stay in your environment.
>
> The Resolve UI includes a **Satellite Configuration for Git** form that generates the right `resolve-values.yaml` and a matching secret template, open your Git integration, choose **On-prem**, and click **Add GHE auth**.
>
> ![Choose Cloud vs On-prem in the integration setup](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/10-onprem-chooser.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=2ae3a439b2c3b2a53a41fd96f7a200e5)
>
> ![Satellite Configuration for Git, Add GHE auth form](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/11-satellite-yaml-form.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=5bda7361c86b674df239bbd75ea6a189)
>
> The form emits YAML in the shape below, plus a suggested Kubernetes secret format.
>
> ![Generated YAML and suggested secret format](https://mintcdn.com/resolveai-0e94a547/TSKPziqa8xE8YA7n/images/git/byo-app/12-satellite-generated-yaml.png?fit=max\&auto=format\&n=TSKPziqa8xE8YA7n\&q=85\&s=39cf44d65a2e330d1b59920cded41f8f)
>
> #### 1. Create a Kubernetes secret with the private key
>
> The private key goes into `gheAuthCredentials.<authConfigName>.privateKey`, keyed by the auth config name you'll use in the next step.
>
> ```yaml git-credentials.yaml theme={null}
> apiVersion: v1
> kind: Secret
> type: Opaque
> metadata:
>   name: git-credentials
> stringData:
>   gheAuthCredentials: |
>     myGheApp: # auth config key, must match `authConfigs` in resolve-values.yaml
>       privateKey: |
>         -----BEGIN RSA PRIVATE KEY-----
>         ...your downloaded private key...
>         -----END RSA PRIVATE KEY-----
> ```
>
> ```shell theme={null}
> kubectl apply -f git-credentials.yaml
> ```
>
> #### 2. Configure the Git integration on Satellite
>
> Add a `ghe` auth config to your existing Git integration (or create a new one) in `resolve-values.yaml`.
>
> ```yaml resolve-values.yaml theme={null}
> integrations:
>   gitGhe:
>     type: git
>     create: true
>     secretName: git-credentials
>     connection:
>       authConfigs:
>         myGheApp: # must match the key in gheAuthCredentials
>           type: "ghe"
>           ghe:
>             baseUrl: "https://github.your-company.com/api/v3"
>             appId: "12345"
>             installationId: "84995228"
>
> gitVolume:
>   type: persistentVolumeClaim
> ```
>
> For a self-signed GHE Server, add a `trustedCertificateOverrides.<authConfigName>` block to the secret, see [Git on Satellite → Custom SSL certificates](https://docs.resolve.ai/git-on-satellite.md#custom-ssl-certificates).
>
> #### 3. Apply changes
>
> ```shell theme={null}
> helm upgrade --install resolve-satellite \
>   oci://registry-1.docker.io/resolveaihq/satellite-chart \
>   --values resolve-values.yaml
> ```
>
> #### 4. Verify integration
>
> Open your Git integration in [Resolve](https://agent.resolve.ai/integrations/git/edit) and confirm the health check and repository listing.
>
> For multi-auth examples (mixing `ghe` with `github` and `token` auth in one integration), advanced storage / certificate config, and Satellite-side troubleshooting, see [Git on Satellite](https://docs.resolve.ai/git-on-satellite.md).

> [accordion] GitHub App permissions reference
>
> Capabilities only become available when the matching permission is granted on the app installation.
>
> | Resolve capability | Permissions required |
> | - | - |
> | Repository read (clone, file reads, history, diffs) | Contents (Read), Metadata (Read) |
> | Reading PR data (metadata, diffs, comments, file contents) | Pull requests (Read), Contents (Read), Metadata (Read) |
> | **Proposing code changes and opening pull requests** | **Contents (Read & write), Pull requests (Read & write), Metadata (Read)** |
> | Reading GitHub Actions workflow runs and workflow definitions | Actions (Read) |
> | **Dispatching, retrying, or cancelling GitHub Actions workflow runs** | **Actions (Read & write)** |
> | Reading PR check status | Checks (Read), Pull requests (Read) |
> | Commit statuses, deployments, discussions, issues, merge queue context | The matching read permission for each |
>
> If a feature returns `403`/permission denied at runtime, the app installation is usually missing one of these. Update the app's permissions on GitHub, accept the prompt to apply the new permission set on the existing installation, then retry.

***

## Frequently Asked Questions

> [accordion] How does ResolveAI's GitHub integration work?
>
> The integration is installed as a GitHub App.
>
> * You install the app on any repository you want ResolveAI to read.
> * GitHub issues a short-lived installation access token automatically for each request, so you never manage or rotate PATs yourself.
> * All token lifecycle and refresh logic is handled by ResolveAI behind the scenes.

> [accordion] What data does it look at?
>
> The GitHub App requests the permissions documented in [Step 3](#step-3-set-repository-permissions). With those scopes, during an investigation the agent reads:
>
> * Repository tree (file paths and file contents)
> * Pull / Merge Requests (open and merged), including diffs and review comments
> * Commit metadata and diffs
> * Basic repository metadata (default branch, topics, permissions)
> * GitHub Actions workflow definitions and recent runs (statuses, conclusions, head SHAs)
> * Check runs and CI status for PRs
> * Issues and Discussions referenced as context
>
> You can review the precise permission set during installation or on the GitHub App page at any time.

> [accordion] Does ResolveAI store the source code?
>
> No. Source code is streamed from GitHub **at runtime only** and is **not persisted or mirrored** on ResolveAI's servers. The sole exception is small code snippets that appear in your investigations, which are saved in ResolveAI SaaS or sent to Slack.

> [accordion] Can ResolveAI make changes to my repositories?
>
> The GitHub App has write permissions on **Contents** (code) and **Pull requests**, but those are only used for explicit, user-invoked actions. Resolve never auto-pushes commits or opens PRs in the background. The app cannot merge code or alter repository settings.
>
> The app also carries **Actions (Read & write)**, which lets Resolve dispatch, retry, and cancel workflow runs. That capability is in Preview and off unless enabled for your organization, and the tools default to requiring human approval.
>
> If you want to disable writes entirely on a Git integration, set `disableWrites: true` on the integration's connection. Read-only operations stay available, write/remediation paths are blocked.
>
> For BYO setups, you control the granted permissions on your own GitHub App.

> [accordion] Can Resolve deploy or roll back without me asking?
>
> Not by default. The app installation carries **Actions (Read & write)**, but the permission alone changes nothing: every write tool ships on **Approval**, so out of the box Resolve proposes the deploy or rollback and waits for a person.
>
> Set a tool to **Auto** and that checkpoint is gone for that tool. The **effective mode** shown next to each tool in Resolve's settings is the authoritative answer for your org.

> [accordion] How is workflow triggering enabled and controlled?
>
> This feature is currently in Preview. Contact [help@resolve.ai](mailto:help@resolve.ai) to have it enabled for your organization. If it is enabled, you can disable specific write tools in your admin settings, and every write tool requires human approval by default.

> [accordion] How do I turn workflow triggering off?
>
> Three options, depending on how firmly you want it off:
>
> * **Disable the specific tools** in your admin settings, or leave them on **Approval** so nothing runs without a person approving it.
> * **Remove the repositories from the app installation**, which puts their workflows out of reach entirely. Use this when only some repositories should be off limits.
> * **Ask us to disable the Preview** for your organization, at [help@resolve.ai](mailto:help@resolve.ai). On a bring-your-own app you can also set **Actions** back to **Read-only** yourself, or narrow the fine-grained PAT for token auth. Investigations keep working either way, they retain read access to workflow runs and definitions.

> [accordion] Whose identity do write actions run under?
>
> That depends on the tool's **credentials** setting.
>
> * **Shared credentials** (the default) run the action with the Git integration's own credentials. In GitHub's audit log the actor is the app installation, not the person who approved.
> * **Per-user auth** runs the action under the individual user's own GitHub authorization. The action then appears in GitHub's audit log as that person, and it is bounded by their repository permissions, so a user cannot use Resolve to do something GitHub would not let them do directly.
>
> Per-user auth is the stronger choice for attribution and least privilege. Resolve records who proposed and who approved each action either way.

> [accordion] I'm using a GitHub IP allowlist. How do I connect with Resolve?
>
> [GitHub IP allowlist](https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization)
>
> Contact us at [help@resolve.ai](mailto:help@resolve.ai) to manage the allowlist of IP addresses for ResolveAI to connect to your GitHub organization.
