Connect a GitHub account

Add a reusable GitHub connection by installing the Fleet for EmDash GitHub App.

Add a reusable GitHub connection from the Connections tab.

Before you start

  • You are an Owner, Admin or Developer, or your custom role holds connections:write. See Roles and permissions.
  • Fleet connects a GitHub account only for its owner, or for a user who administers every repository Fleet for EmDash can reach in it. Sign in as the personal account, or for an organization as a user with admin access to every repository you give the app. A member who cannot install the app can ask an owner to do these steps.
  • At least one repository must be reachable. When GitHub asks for All repositories or Only select repositories, select the repositories your sites will use.

Steps

  1. Open the Connections tab, select Add connection, then GitHub. In a site wizard, select A new connection instead.
  2. Continue to GitHub. You have 10 minutes to finish.
  3. On GitHub, choose where to install: your personal account, or an organization you own.
  4. Choose the repositories and read the permissions. They let Fleet start, watch and cancel builds, create a repository, read and write its files, read its details, open pull requests and add or update its two workflow files when a site is created. GitHub shows that last permission as Update GitHub Action workflow files.
  5. Select Install, then authorize the app when GitHub asks.
  6. Back in Fleet, if several accounts pass the check, choose the account in the picker.

If Fleet for EmDash is already installed on the account, select I already installed Fleet for EmDash in the box Already installed on GitHub? instead of Continue to GitHub. Fleet skips the installation and sends you to GitHub to authorize.

Result

The connection reads Active, with the account name and the permissions GitHub granted. Only the sites of this workspace use it. Fleet changes only the repository of a site. If the same installation is already connected in this workspace, Fleet keeps the older connection.

To remove the installation of your own account, open Settings, Applications, Installed GitHub Apps on GitHub. See GitHub's instructions for installed apps and Revoke a connection.

If something goes wrong

When Fleet cannot confirm who may connect, it creates no connection and shows the first message that applies.

Your GitHub user reaches more accounts or repositories than Fleet checks:

Your GitHub user reaches more accounts or repositories with Fleet for EmDash installed than Fleet checks at once: 100 accounts in all, 10 once other people's personal accounts are left out, and 1,000 repositories. Sign in to GitHub as a user that reaches fewer, then start again.

No installation remains after the check:

GitHub did not finish the installation. Start again.

GitHub did not answer the access check. Wait a few minutes:

GitHub did not answer Fleet's access check. Start again in a few minutes.

The account is an organization, and Fleet cannot yet confirm who administers it:

Fleet cannot yet confirm who administers a GitHub organization, so it connects only personal GitHub accounts. Install Fleet for EmDash on a personal GitHub account, then start again.

The installation reaches no repository:

Fleet can reach no repository in this GitHub account. In GitHub, give the Fleet for EmDash installation access to at least one repository, then start again.

In every other case, you are not the owner and do not administer every repository the app reaches:

Fleet connects a GitHub account only for its owner, or for a user who administers every repository Fleet can reach in it. Sign in to GitHub as that user, or ask an owner of the organization to install Fleet for EmDash on only the repositories you administer, then start again.

You canceled on GitHub:

You canceled on <Provider>. Nothing was connected.

You reconnected with another account. Fleet keeps the old connection:

This is a different <Provider> account than this connection uses. Select Reconnect and pick the account the Connections tab names. If the tab shows only an account ID, pick the account you connected first.

The chip Approve new permissions means a newer version of the Fleet for EmDash GitHub App waits for approval on GitHub. A site that needs it shows this message. Approve the permissions on GitHub, then select Retry.

The GitHub installation of this site has not approved the new permissions Fleet needs. Approve them on GitHub, then select Retry.

The chip Suspended means the installation is suspended on GitHub. Unsuspend it there.

Related

Report a problem with this page