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

# Connect GitHub

> Create Inframan's GitHub App in your own GitHub account or organization so pushes can deploy.

Inframan deploys from GitHub. Connecting creates a **private GitHub App** named Inframan, owned by your GitHub account or organization. Because the app is yours, you decide which repositories it can see, and you can remove it in GitHub at any time.

## Connect

**1. Open GitHub settings**

In the console, go to **Settings** → **GitHub authentication**.

**2. Choose who owns the app**

Click **Connect Personal Account** to create the app under your own GitHub user, or **Connect Organization** and enter the organization's name, such as `my-org`, to create it under an organization. Creating an app in an organization needs owner rights there.

**3. Create the app on GitHub**

GitHub opens and asks you to create the app. Inframan has already filled in its name, permissions and webhook. Confirm it.

**4. Install it on your repositories**

GitHub takes you to the app's install page. Choose **All repositories** or pick the ones Inframan may deploy, and install.

You're returned to the console with the app listed under **GitHub Apps**. To connect another account or organization, click **Add Another GitHub App**.

> [!NOTE]
>
> Connecting has to happen in a browser, because GitHub creates the app interactively. A connected AI assistant can't do this step for you.

## What the app can do

| Permission | Access | Why |
| - | - | - |
| Contents | Read and write | Clone your code, and push the branches for configuration pull requests |
| Pull requests | Read and write | Open pull requests that add or change `inframan.yaml` |
| Commit statuses | Read and write | Show each service's release status on the commit |
| Deployments | Read and write | Record each release as a GitHub deployment |
| Administration | Read | Read repository settings |
| Metadata | Read | Required by GitHub for every app |

The app receives the `push`, `pull_request`, `deployment` and `deployment_status` events.

## What you'll see in GitHub

Every release posts a commit status named `inframan/<service>` for each service, linked to the release's page in Inframan, and records a GitHub deployment.

## When Inframan needs a new permission

If a new Inframan feature needs a permission your app doesn't have yet, the app is flagged on the **GitHub authentication** page, with the permissions to change:

1. **Step 1 of 2:** open your app's settings on GitHub, set each listed permission under **Permissions & events**, and save.
2. **Step 2 of 2:** GitHub asks you to approve the change for your installation. Approve it.

## Limits

* GitHub only. GitLab and Bitbucket aren't supported.
* Inframan builds from source. Deploying a pre-built image from a registry isn't supported.
* Clones are shallow and don't fetch Git submodules or Git LFS files.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.