Personal access token
If you can’t create a GitHub App, imulup can authenticate as a user with a personal access token.
Create the token
Section titled “Create the token”Sign in as the bot account and create a token under Settings → Developer settings → Personal access tokens.
- Fine-grained token: limit it to the repositories imulup manages, with these repository permissions:
- Contents: Read-only (Read and write for automerge)
- Pull requests: Read and write
- Issues: Read and write
- Commit statuses: Read and write
- Metadata: Read-only
- Classic token: the
reposcope.
Unlike GitHub App tokens, a personal access token is long-lived, and imulup uses the same token for every repository and every job. Set an expiry and rotate it.
Configure imulup
Section titled “Configure imulup”IMULUP_GH_TOKEN=github_pat_...IMULUP_GH_USER=my-org-imulup # the login that owns the tokenIMULUP_GH_WEBHOOK_SECRET=...IMULUP_REPO_ALLOWLIST=my-org/infraIMULUP_GH_USER is required with a token. Don’t also set IMULUP_GH_APP_ID: imulup accepts exactly one of the two.
Add the webhook
Section titled “Add the webhook”On each repository (Settings → Webhooks → Add webhook), or once for the whole organization:
| Setting | Value |
|---|---|
| Payload URL | https://<your-imulup-host>/events |
| Content type | application/json |
| Secret | The same value as IMULUP_GH_WEBHOOK_SECRET |
| Events | Let me select individual events → Pull requests and Issue comments |
The content type has to be application/json. With application/x-www-form-urlencoded, imulup answers
400 invalid JSON.