GitHub Connection

The GitHub connection provides two authentication mechanisms:
  • Token-based authentication

  • GitHub App authentication

For Token-based authentication, you must provide an access token. For GitHub App authentication, you must configure the connection’s Extras field with the required GitHub App parameters.

Configuring the Connection

Access Token (optional)
Personal Access token with required permissions.
Host (optional)

Specify the GitHub Enterprise Url (as string) that can be used for GitHub Enterprise connection.

The following Url should be in following format:

  • hostname: Url for Your GitHub Enterprise Deployment.

https://{hostname}/api/v3

GitHub App authentication

You can authenticate using a GitHub App installation by setting the extra field of your connection, instead of using a token.

Example “extras” field:

{
  "key_path": "FAKE_KEY.pem",
  "app_id": "123456s",
  "installation_id": 123456789,
  "token_permissions": {
    "issues":"write",
    "contents":"read"
  }
}

Was this entry helpful?