Skip to main content

GitHub connection

The saved link to GitHub. In the connection picker it is GitHub.

Powers these nodes​

It also lets a saved script be kept in step with a file in a repository, under either kind of authentication, or with a gist, under a personal access token only, since an app installation cannot reach gists. See Keeping a script in a repository or a gist.

A GitHub connection signing in as an App Installation, its Auth picker open on the two ways to sign in

Authenticating​

Use an App Installation for a connection a team shares: it belongs to the organization and survives people leaving. Use a Personal Access Token for quick personal use, or to reach gists. Both store credentials, so there is no Connect button: fill in the fields and save. The GitHub connection reference describes each field, in the same words its Guide icon shows in the tool.

An app installation is tied to an organization rather than a person. An administrator registers the GitHub App, installs it in the organization, and hands you its App ID, the Installation ID, and the app's private key. The app's permissions decide what the connection can do: give it Webhooks (read and write) for triggers to register themselves, and read and write on Contents, Pull requests, Issues, Commit statuses and Actions for the operations your automations use.

warning

The private key must be in PKCS#8 format, which begins -----BEGIN PRIVATE KEY-----. GitHub hands out a PKCS#1 key, which begins -----BEGIN RSA PRIVATE KEY-----, and saving the connection refuses it. Convert it first:

1
openssl pkcs8 -topk8 -nocrypt -in key.pem -out key-pkcs8.pem

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.