# GitHub

> The GitHub account your Agents work as, where the AirBuild GitHub App is installed and how many repositories it reaches, single sign-on, and Sign Commits with AirBuild.

Source: https://air.build/docs/settings/github/

GitHub shows which GitHub account your Agents work as, where the AirBuild GitHub App is installed, and which repositories they can reach. The app describes it as "See where the AirBuild GitHub App is installed and which repositories your agents can reach."

## Open GitHub

**iPhone**

Open **Settings**. Under **Connections**, tap **GitHub**.

**Mac**

Open **Settings** and click **GitHub** in the sidebar.

Searching Settings for **GitHub App** also opens it. The page reads GitHub again each time you come back to the app, so changes you make on GitHub show without reopening it.

## Account

| What you see | What it means |
| --- | --- |
| **Connect GitHub** | No GitHub account is connected. Tap it and sign in to GitHub. A spinner shows on the row while the sign-in is under way. |
| **GitHub** with your GitHub name | Connected. Footer: "Your agents work with GitHub as this account. Your password and tokens never reach them." |
| **Sign In Again** on the row | GitHub needs a new sign-in. Footer: "GitHub needs you to sign in again before your agents can reach repositories." |

**iPhone**

GitHub's sign-in opens inside the app.

**Mac**

GitHub's sign-in opens in your web browser. Come back to AirBuild when you're done; the page updates.

While the page reads your account, the row shows a placeholder. If your account can't be read, the section shows the reason instead.

The GitHub account is the same one you can sign in to AirBuild with; it's also listed under **Connected Accounts** in Settings › [Account](https://air.build/docs/settings/account/).

## GitHub App

Once GitHub is connected, **GitHub App** lists each GitHub account or organization the AirBuild GitHub App is installed on, with how many repositories it grants ("12 repositories"). A person icon marks a personal account, a building an organization.

| Item | What it does |
| --- | --- |
| An account's row | Opens GitHub's page for the app, where you change which repositories it reaches. |
| **Install AirBuild GitHub App** | Shown when it's installed nowhere. Opens GitHub to install it and choose repositories. |
| **Add Account…** | Installs it on one more account or organization. |

Footers:

- None installed: "The AirBuild GitHub App is not installed on any account yet. Install it and choose repositories to let your agents reach your code."
- Installed: "Your agents can reach the repositories granted to these installations. Select an account to manage its repositories on GitHub."

After you go to GitHub, the page keeps checking and shows new installations when you come back. If the list can't be read, the section shows the reason and **Try Again**.

### Single sign-on

| Notice | What to do |
| --- | --- |
| **Single Sign-On Required** — "GitHub hides _n_ organization(s) until you sign in again and complete single sign-on." | Tap **Sign In Again** and complete single sign-on when GitHub asks. |
| **Already Granted Access?** — "If your organization uses single sign-on, sign in to GitHub again and complete it when GitHub asks." | Shown when you went to GitHub but no installation shows. Tap **Sign In Again**. |

## Sign Commits with AirBuild

A switch for the Team you have open: "Commits your agents make show AirBuild as a co-author on GitHub." When you're in more than one Team, the Team's name stands over the switch. Only the Team's owner can change it; for members it's dimmed.

If the change can't be saved, an alert titled **Sign Commits with AirBuild** gives the reason.

## Messages

| Message | When it shows | What to do |
| --- | --- | --- |
| **Unable to Connect GitHub** — "Connecting needs a recent sign-in. Sign out, sign back in, and try again." | Connecting GitHub to an account you signed in to a while ago. | Sign out of AirBuild, sign back in, then tap **Connect GitHub** again. |
| **Unable to Connect GitHub** — "The account could not be connected. Try again." | The GitHub sign-in didn't finish. | Tap **Connect GitHub** again. |
| **Unable to Connect GitHub**, with another reason | Connecting failed for that reason. | Try again. |
| **Account Already Connected** — "That GitHub account is already linked to another AirBuild account. Please disconnect it first or use a different GitHub account." | The GitHub account belongs to another AirBuild account. | Disconnect it from that account first, or use another GitHub account. |
| The reason, with **Try Again**, under **GitHub App** | The installations couldn't be read. | Tap **Try Again**. |
| **Sign Commits with AirBuild**, with the reason | The switch couldn't be saved and went back. | Try again. |

Each alert closes with **OK**.

## Owner and members

A Team's Agents use the GitHub connection of the Team's owner. When ownership moves to someone else, the Agents can't use GitHub until the new owner gives them access. See Settings › [Teams](https://air.build/docs/settings/teams/#people).

## Questions

**An organization's repositories don't show.**

Install the GitHub App on that organization with Add Account…. If the organization uses single sign-on, tap Sign In Again and complete it.

**How do I give Agents more repositories?**

Tap the account's row to open GitHub's page for the app, and add the repositories there.
