Skip to main content

Connect and manage GitHub integration

UI-only

GitHub integration is managed in the platform UI. There is no CLI equivalent.

This guide shows how to connect GitHub, add GitHub accounts and organizations, see which ones are connected, change which repositories the platform can read, and disconnect one. GitHub integration explains how the connection works: it is yours alone, and each GitHub account or organization it reaches is listed as a connected owner.

Prerequisites​

A verified email. Connecting GitHub needs no role, in your personal account or in an organization.

Add a GitHub account or organization​

  1. Open Settings → Integrations.
  2. Click Add account or organization.
  3. On GitHub, choose the account or organization to install the app on and the repositories it can read, then confirm the installation. GitHub shows the permissions the app requests before you install it.
  4. GitHub returns you to Integrations, which lists every account and organization the app is installed on that your GitHub user can reach.

Repeat these steps for each further account or organization.

In a GitHub organization where you cannot install apps, GitHub sends an installation request to the organization's owners on GitHub instead, and the platform tells you the request was sent. Once one of them approves it, click Connect GitHub to add the organization to the list.

If you pick an account or organization the app is already installed on, GitHub opens that installation's settings instead. Changing them there adds nothing to the list: if the account or organization is missing from Integrations, click Connect GitHub.

Connect when the app is already installed​

If the app is already installed on the accounts and organizations you need, for example by an owner of a GitHub organization, click Connect GitHub on Settings → Integrations and authorize the app on GitHub. Integrations then lists every account and organization the app is installed on that your GitHub user can reach.

View connected owners​

Open Settings → Integrations to see the GitHub accounts and organizations connected on your account. The list is checked against GitHub each time the page or a GitHub import dialog opens, so an installation removed on GitHub drops off it; see How the list stays in step.

Change which repositories the app can read​

Repository access is managed on GitHub. In a GitHub organization, changing it takes the right to manage the organization's GitHub Apps, which its owners on GitHub have.

  1. On GitHub, open the settings of the account or organization, then its installed GitHub Apps.
  2. Click Configure next to swale-platform.
  3. Under Repository access, choose all repositories or select the ones the app can read, and save.

The import dialogs read the installation's current repositories each time they list them, so the change shows there without connecting again.

Disconnect an owner​

Disconnecting a GitHub account or organization needs a verified email. It removes it from the list, and the platform refuses browsing and importing from it. Workflows and task definitions that were already imported remain intact and continue to work, but importing from it again, including re-importing a workflow, fails until you connect GitHub again.

  1. Open Settings → Integrations.
  2. Find the account or organization you want to disconnect.
  3. Click Disconnect. It is disconnected straight away; there is no confirmation step.

Disconnecting leaves the Swale GitHub App installed on the account or organization. To remove the app's access entirely, uninstall it on GitHub: open the account's or organization's installed GitHub Apps settings, click Configure next to swale-platform, and uninstall it. In a GitHub organization, this also takes the right to manage its GitHub Apps.

Troubleshooting​

GitHub-backed actions stop working​

If importing workflows or browsing repositories fails, connect again:

  1. Open Settings → Integrations.
  2. Click Connect GitHub and authorize the app on GitHub again. This refreshes the connection and the list of connected owners.

Repository not visible​

  • Confirm the repository belongs to a GitHub account or organization connected on your account.
  • Check that the app's installation on that account or organization covers the repository: an installation limited to selected repositories reads only those. See Change which repositories the app can read.
  • Verify that your GitHub user can access the repository.

Next steps​