GitHub App
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
The GitHub App integration is how Nomatron connects repository activity in GitHub to planning, approval, and delivery workflows in Nomatron.
It is the main integration path when you want Nomatron to:
- read repositories and job definitions from GitHub;
- receive webhooks when code changes or pull request activity happens;
- post plan and workflow activity back into GitHub; and
- participate in a pull-request-driven delivery model.
This page explains both:
- what the GitHub App is for; and
- how to configure it correctly.
What The GitHub App Is Used For
The GitHub App allows Nomatron to participate in a repository-driven workflow rather than treating Git as an external system it cannot observe.
In practice, the app is used for:
- repository access;
- webhook delivery;
- pull request workflow integration; and
- writing status or comment activity back into GitHub where the integration model requires it.
That matters because Nomatron’s planning and approval model often starts with repository change.
Comment-Triggered Plans
Nomatron can use GitHub issue or pull request comments to trigger plans when that workflow is enabled.
Comments can target a specific app environment, such as dev, staging, or prod. If the comment does not specify an environment, Nomatron targets the first app environment by priority.
The app must have at least one environment before a GitHub-triggered deployment plan can run. That requirement applies to both raw Nomad jobs and Nomatron template jobs, because both use app environments for target metadata, variables, approval rules, and release history.
Generated GitHub plan comments should be read as the review surface for the target app environment. They do not replace the normal approval policy; environment-specific approval rules still apply before an apply can proceed.
Where The App Should Live
Before creating the GitHub App, decide where it should be owned.
If the repository is owned by a GitHub organization, create the app in that organization.
If the repository is owned by a personal GitHub account, create the app in that personal account.
This matters because:
- the installation target must match the repository owner; and
- GitHub will open different settings and installation flows depending on where the app is being created.
As a simple rule:
- org-owned repo -> org-owned GitHub App
- user-owned repo -> user-owned GitHub App
What You Need Before Starting
Have these ready before you begin:
- access to Nomatron;
- admin access to the GitHub account or organization that will own the app;
- a repository you want Nomatron to work with;
- a safe place to temporarily store copied values; and
- if you are testing in local dev mode, a public callback URL via
ngrok.
During setup, you will collect:
App IDClient IDApp slugPrivate key PEMWebhook secret
Setup Flow
The normal setup flow is:
- start the GitHub App registration flow in Nomatron;
- let Nomatron prefill the important URLs where possible;
- create the GitHub App in GitHub;
- copy the generated app values back into Nomatron;
- save the integration; and
- install the app into the correct repository owner.
URLs GitHub Needs
GitHub App setup depends on a few URLs being correct.
Nomatron should provide or prefill:
Homepage URLCallback URLSetup URLWebhook URL
Use Nomatron’s generated values rather than inventing them manually.
If these are wrong, the integration will usually fail later in a confusing way during callback, install, or webhook handling.

Dev Mode And ngrok
If Nomatron is running locally in dev mode, plain localhost URLs are not enough for GitHub webhooks and callbacks.
In dev mode, start Nomatron with an ngrok auth token so it can expose a public callback path.
The resulting public api_addr is what should back the callback, setup, and webhook URLs during testing.
If GitHub is pointing at localhost while Nomatron is running locally, webhook delivery will not work.
Required Permissions
Use the permissions Nomatron requests.
A common working set includes:
Administration: Read and writeContents: Read and writeIssues: Read and writeMetadata: Read-onlyPull requests: Read and writeWebhooks: Read and write
Existing GitHub App installs that still have Contents set to Read-only must approve the permission upgrade in GitHub after upgrading Nomatron. Accept-drift GitHub PR write-back requires Contents: Read and write.
Two permissions matter especially here:
Contents
Nomatron needs read access for jobspecs and write access so accept-drift can open a best-effort pull request that writes the accepted live Nomad job back to the connected jobspec file (JSON or HCL). TEMPLATE jobs skip git write-back.
Pull Requests
Nomatron needs pull request access to participate in PR-driven workflows and post plan or related delivery feedback where that integration path is enabled.
Webhooks
Nomatron needs webhook access so it can receive and manage the GitHub event flow required for repository automation.
Required Webhook Events
Use the webhook events Nomatron asks for.
A common event set is:
PushPull requestIssue comment
These are the events most often used to connect source activity and PR discussion back into Nomatron workflows.
Creating The App In GitHub
Once the URLs, permissions, and events are correct:
- create the GitHub App in GitHub;
- copy the
App ID,Client ID, andApp slug; - generate a private key;
- open the downloaded
.pemfile; and - copy the full contents of that private key, including the
BEGINandENDlines.
You should also create and retain a webhook secret, then paste the same exact value back into Nomatron.
Finishing The Integration In Nomatron
After GitHub App creation, return to Nomatron and enter:
App IDClient IDApp slugPrivate key PEMWebhook secret
Then save the integration.
At this point, the app exists in GitHub, but it is not yet useful until it has been installed into the correct owner and repository scope.
Installing The GitHub App
After saving the integration:
- start the install or connect action from Nomatron;
- choose the correct GitHub account or organization;
- install the app into the repository or repositories Nomatron should manage; and
- complete the GitHub approval flow.
Make sure the installation target matches the repository owner you actually want Nomatron to work with.
What “Connected” Should Mean
After installation, Nomatron should show the integration as installed or connected.
A healthy integration usually means:
- the app exists in the right GitHub owner;
- Nomatron has valid app credentials;
- the app is installed into the expected repositories; and
- webhook delivery and callback paths are valid.
Common Failure Modes
The app was created in the wrong owner
This is one of the most common mistakes.
If the repository is owned by an organization but the app was created in a personal account, or vice versa, the install flow and repository access model often become awkward or incorrect.
Callback, setup, or webhook URL mismatch
If the URLs in GitHub do not exactly match what Nomatron expects, installation and webhook handling can fail even though the app itself was created successfully.
Webhook secret mismatch
The webhook secret in GitHub and the webhook secret stored in Nomatron must match exactly.
Private key copied incorrectly
The full PEM contents must be pasted back into Nomatron, including the BEGIN and END lines.
Dev mode using localhost instead of public callback URLs
If you are testing locally, GitHub must still be able to reach Nomatron over a public callback path. Localhost alone is not enough.
Operational Guidance
Once the integration is live, treat it like a production integration dependency.
That means:
- keep ownership clear;
- document where the app is registered;
- store the private key and webhook secret safely;
- know which repositories are installed;
- review webhook delivery if pull-request-driven flows stop working; and
- rotate or replace credentials carefully rather than recreating the app casually.
When To Use This Page Versus Getting Started
Use this page when you want the durable integration guide and operating expectations.
Use the Getting Started page when you are doing the first local happy-path setup: