Connect Your First GitHub App

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

Estimated time: 8 minutes

This step lets Nomatron read your repo, receive webhooks, and post plan activity back through GitHub.

Before you start, decide where the GitHub App should live:

  • if the repository is owned by a GitHub organization, create the GitHub App in that organization
  • if the repository is owned by a personal GitHub account, create the GitHub App in that user account

This choice affects the GitHub registration URL and the page GitHub opens for app creation.

1. Open The GitHub Integration Flow In Nomatron

  1. Open your organization.
  2. Go to Integrations.
  3. Open GitHub App Integrations.
  4. Click New GitHub App.
  5. Click Open GitHub App Registration.

Use the same GitHub owner as the repository you created in the previous step.

Examples:

  • repository is under acme-inc -> create the GitHub App in the acme-inc organization
  • repository is under jane-dev -> create the GitHub App in the jane-dev personal account

GitHub App registration

2. Fill In The GitHub App In GitHub

Nomatron should prefill most of the values for you. Use Nomatron’s generated values for:

  • Homepage URL
  • Callback URL
  • Setup URL
  • Webhook URL

Important:

  • if the app is being created in a GitHub organization, the registration page should open under that organization

  • if the app is being created in a personal account, the registration page should open under your personal GitHub settings

  • if GitHub opens the wrong location, stop and restart the registration flow with the correct owner choice

  • keep webhooks enabled

  • create a webhook secret

  • save that webhook secret because you will paste the same value back into Nomatron

If Nomatron is running in dev mode, make sure the URLs use the public ngrok api_addr, not plain localhost.

Ensure Expire user authorization tokens is unchecked.

GitHub Callback URLs

3. Set Permissions And Events

Use the permissions Nomatron requests. The common working set is:

  • Administration: Read and write
  • Contents: Read and write (needed so accept-drift can open a pull request that writes the live job back to your jobspec)
  • Issues: Read and write
  • Metadata: Read-only
  • Pull requests: Read and write
  • Webhooks: Read and write

Use these webhook events:

  • Push
  • Pull request
  • Issue comment

4. Create The App And Copy The Required Values

After GitHub creates the app, copy:

  • App ID
  • Client ID
  • App slug

Then generate a private key and copy the full .pem contents, including:

  • -----BEGIN ...-----
  • -----END ...-----

GitHub App Settings

5. Finish The Connection In Nomatron

Back in Nomatron, paste:

  • App ID
  • Client ID
  • App slug
  • Private key PEM
  • Webhook secret

Save the integration and click on Go to integration.

6. Install The GitHub App

  1. Click the connect action in Nomatron.
  2. In GitHub, choose the repository that you created from the template or select All repositories.
  3. Click Install to complete the installation process.

Make sure the installation target matches the repository owner.

7. Confirm Status

Return to Nomatron and make sure the integration now shows as installed or connected.

GitHub App Status