Skip to content

GitHub connects with OAuth 2.0 through Truto's GitHub OAuth app or your own.

Install the GitHub integration

Install GitHub from Available integrations in each environment you connect accounts from.

Use your own GitHub OAuth app

Truto connects GitHub accounts through its own OAuth app, so this step is optional. To show your own app on the consent screen instead:

  1. Create an OAuth app in GitHub and add https://api.truto.one/connect/github/callback as its redirect URL. If you use a redirect URL on your own domain, add that URL instead.
  2. Enter the app's Client ID and Client Secret on the installed GitHub integration. See Overriding OAuth credentials.

By default, Truto asks GitHub for these scopes. The Connect UI lists them under Permissions required, and you can change them when you override the OAuth credentials.

  • read:user
  • workflow
  • read:org
  • repo
  • user:email

Enable the same scopes on your app. If your app allows fewer, change the list under Use your own OAuth settings → Scopes on the installed integration's Configuration tab to match.

Connect a GitHub account

  1. In Integrated Accounts, click Connect Account. Click Connect Account

  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on GitHub, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link

  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own GitHub account. The link works for 7 days, until an account is connected with it. Share connection link

  4. Click Get Started if it shows, then select GitHub. Select GitHub

  5. Log in to your GitHub account and allow access to Truto.

    Info

    If the organisation restricts OAuth apps, an organisation owner must approve the app (Settings → Third-party Access → OAuth app policy) before Truto can see its private repositories. Members can request approval on the consent screen.

  6. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.