Settings reference

Connect GitHub with a GitHub App

Create the GitHub App, paste its five values, and install it on your organisation.

What the GitHub App is for

In the portal: Setup wizard, the Code step, or Admin, Settings, Code and repositories

It is optional, and the one optional step worth doing. With a GitHub App cyantula can clone private repositories, let every colleague pick from their own repositories, open changes as pull requests, and create a repository for a brand-new app. Without it you can still publish public repositories, zips and single HTML pages.

You make one App for your cyantula, owned by a GitHub organisation (not a personal account): that organisation is also where new app repositories are created.

The provider list

In the portal: Admin, Settings, Code and repositories

The page lists your git providers, GitHub and GitLab, one row each: its status (Connected or Not set up) and where new repositories go. Click Configure on a row to open a side panel with the tabs Connection, Destination and, where there is something to show, Advanced. The fields share the page's Save button.

When both providers are set up, the page also asks for a Default provider for new repositories: where a new repository or an uploaded zip goes when a colleague does not choose. With only one provider set up, that one is used.

The quick way: the prompt

The Code step shows a prompt with your server's addresses already filled in. Paste it into a coding agent that can use the GitHub CLI and a browser (Claude Code, for example). It creates the App, installs it on your organisation and hands back the values for the fields. You approve one page on GitHub along the way.

By hand

  1. On GitHub, open your organisation's Settings, Developer settings, GitHub Apps, New GitHub App. See GitHub's guide.
  2. Homepage URL: your portal. Callback URL: https://<your portal>/auth/github/callback. Tick Request user authorization (OAuth) during installation. Leave user token expiry on.
  3. Repository permissions:
    • Administration: Read and write (to create repositories)
    • Contents: Read and write
    • Issues: Read and write
    • Pull requests: Read and write
    • Webhooks: Read and write
    • Metadata: Read-only
  4. Where can it be installed: Any account, so colleagues can install it on repositories of their own too.
  5. Create it. On its page, copy the App ID, the Client ID and the app's URL name (the slug, the last part of github.com/apps/<slug>). Generate a client secret and a private key; the key downloads as a .pem file.
  6. Install the App on your organisation (github.com/apps/<slug>/installations/new), on all repositories or the ones cyantula should manage.

What goes where

  • GitHub organisation for new repositories: the organisation login.
  • GitHub App ID, client ID, client secret and slug: from the App's page.
  • GitHub App private key (PEM): the whole .pem file, BEGIN and END lines included.

After saving, the check on the same page tells you whether GitHub accepts the App and where it is installed.

No App possible? Use a personal access token instead, as described next.

Use a personal access token instead of the App

A GitHub personal access token is the lighter way to connect GitHub: nothing to create or install on an organisation. It does most of what the App does (publish repositories, create them for new apps, upload new versions, clone, and open changes as pull requests), with these differences: actions on GitHub are done as the token's owner, and without the App GitHub does not announce a push instantly, so cyantula notices a new version a few minutes later.

One token for the whole platform

In the portal: Admin, Settings, Code and repositories, Advanced

An administrator pastes a token in GitHub personal access token (show the rarely-used fields to see it). Make a fine-grained token on GitHub (Settings, Developer settings, Personal access tokens) with these repository permissions: Administration, read and write (to create repositories); Contents, read and write; Pull requests, read and write. Set GitHub organisation for new repositories to put new repositories in an organisation; the token must be allowed to create them there.

A token per colleague

In the portal: Profile, GitHub, Connect with a token

Each colleague can add their own token instead, so what they do on GitHub is done as them. A classic token needs the repo scope; a fine-grained one needs Administration and Contents write access. cyantula checks the token when you click Connect and says what is missing. It is stored encrypted and only used for your own actions, and Disconnect removes it. With the App set up as well, the Connect GitHub button is offered next to the token field.

When somebody acts and has their own token, that token is used; otherwise the platform token; otherwise the code is kept on the cyantula server. All the options side by side are on Where the code lives.