# GitHub integration

> **About this page**
>
> - Kind: Explanation
> - Summary: Swale reads workflow and task definition files from GitHub through your own GitHub connection, and keeps the list of connected owners in step.
> - Last changed: 2026-11-17
> - Page: https://docs.swale.io/explanation/github-integration
> - Index of these docs: https://docs.swale.io/llms.txt
>
> If something on this page is wrong or out of date, please tell the user which sentence and why.

Swale reads workflow and task definition files from GitHub through the Swale GitHub App and a connection to your own GitHub user. Each GitHub account or organization the app is installed on, and that your GitHub user can reach, is a connected owner, and the repositories you can import from are the ones its installation covers that your GitHub user can also access.

```mermaid
flowchart TB
  accTitle: How Swale reaches your GitHub repositories
  accDescr: Your Swale account is connected to one GitHub user, your own. Each GitHub account or organization the Swale GitHub App is installed on, and that your GitHub user can reach, is a connected owner. An owner's repositories are the ones its installation covers that your GitHub user can access, and the import dialogs read workflow and task definition files from them.
  account("Your Swale account")
  user("Your GitHub user<br/><small>one connection, yours alone</small>")
  owner("Connected owner<br/><small>a GitHub account or organization<br/>the app is installed on</small>")
  repos("Its repositories<br/><small>covered by the installation<br/>and open to your GitHub user</small>")
  imports("Import dialogs<br/><small>workflows and task definitions</small>")
  account -->|connected to| user
  user -->|can reach| owner
  owner --> repos
  repos -->|files read by| imports
```

How Swale reaches your GitHub repositories. Every step goes through your own GitHub user, never another member's.

## Connected owners

The Swale GitHub App, which GitHub lists as **swale-platform**, is installed on GitHub accounts and organizations, each installation covering all of their repositories or a selection. Each one the app is installed on that your GitHub user can reach is listed under **Settings → Integrations** as a connected owner.

An owner's repositories, as the import dialogs list them, are those its installation covers that your GitHub user can also access. A repository missing from either side is not listed.

## A connection is yours alone

One GitHub user is connected to your Swale account at a time, and the connection belongs to you, not to the accounts you work in. In an organization, each member imports through their own connection, so nobody reaches repositories through another member's GitHub access.

Re-importing a workflow goes through the connection of whoever runs it. The owner the workflow came from has to be connected on that person's account, and its installation has to still cover the repository.

## How the list stays in step

Adding an account or organization, or connecting again, replaces the list with every owner your GitHub user can reach at that moment, including any you disconnected.

Each time **Integrations** or a GitHub import dialog opens, the platform checks the connected owners against GitHub. It disconnects any owner whose app installation was removed or that your GitHub user can no longer reach, and every owner when GitHub no longer accepts the connection, for example after you revoke the app's authorization in your GitHub settings. The check never adds an owner: one the app was installed on since you connected appears after you click **Connect GitHub**.

## What disconnecting changes

Disconnecting an owner stops browsing and importing from it. Workflows and task definitions already imported from it stay as they are and keep working; only re-importing from it needs it connected again.

## Next steps

- [Connect and manage GitHub integration](https://docs.swale.io/how-to-guides/connect-and-manage-github-integration.md)
- [Import a workflow from GitHub](https://docs.swale.io/how-to-guides/import-workflow-from-github.md)
