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

# GitHub

> Pull code context from GitHub into alert investigations.

| Property  | Value      |
| --------- | ---------- |
| **Type**  | Contextual |
| **Level** | Service    |

Warrn connects to your GitHub repositories so Warrnagen can pull code context during investigations. Recent commits, pull requests, code search, file blame, and deployment history.

## Setup

<Steps>
  <Step title="Install the Warrn GitHub App">
    Open a service in Warrn. Go to the **Integrations** tab, add **GitHub**, and click **Install GitHub App**. Grant access to the repositories you want Warrn to read.
  </Step>

  <Step title="Select a repository">
    After installation, select which repository maps to this service.
  </Step>
</Steps>

## What Warrnagen can access

* **Recent commits.** Shows what changed around the time an alert fired.
* **Pull requests.** Surfaces related PRs for context.
* **Code search.** Finds error locations in your codebase.
* **File blame.** Identifies who last touched relevant code.
* **Deployments.** Correlates alerts with recent deploys.

<Note>
  GitHub uses a GitHub App with repository-level permissions. No bot account or personal OAuth needed.
</Note>
