Overview
GitHub Enterprise (MU) connects Blocks to a GitHub Enterprise managed user tenant by using a GitHub App that you create and own in your enterprise organization. This guide usesCubeOrgSquaredApp as an example app name. You can choose any unique, descriptive name for your own app.
This setup creates fresh credentials for your GitHub App. Do not copy app IDs, client IDs, private keys, webhook secrets, or client secrets from another app.
Prerequisites
- Organization owner or admin access in your GitHub Enterprise managed user tenant
- Admin access to your Blocks workspace
- Your enterprise web host URL, such as
https://cubeorg.ghe.com - Your enterprise API host URL, such as
https://api.cubeorg.ghe.com - A secure place to store the generated webhook secret, client secret, and private key
Step 1: Create a GitHub App
In your enterprise organization, open:https://cubeorg.ghe.com and your org is CubeOrgSquared, open:
Step 2: Enter basic app details
Use these values when creating the app:
Under Identifying and authorizing users, add these callback URLs in this exact order:
Under Post installation, leave the setup URL empty and leave Redirect on update unchecked.
Step 3: Configure the webhook
Under Webhook, set:
GitHub documents the events available to GitHub Apps in Webhook events and payloads.
Step 4: Set repository permissions
Under Repository permissions, set only the permissions Blocks needs:
Leave all other repository permissions set to No access.
Step 5: Set organization permissions
Under Organization permissions, set:
Leave all other organization permissions set to No access.
Under Account permissions, leave every permission set to No access. Under Enterprise permissions, do not select any permissions.
Step 6: Subscribe to events
Subscribe to exactly these events:- Commit comment
- Create
- Delete
- Issue comment
- Issues
- Label
- Pull request
- Pull request review
- Pull request review comment
- Pull request review thread
- Push
- Repository
- Sub issues
- Workflow dispatch
- Workflow run
Step 7: Choose app visibility
Under Where can this GitHub App be installed?, choose the option that matches your enterprise policy:- Only on this account if the app should only be installed in the organization where you created it
- Any account if your enterprise admins want the same app to be installable by other accounts on the tenant
Step 8: Generate app credentials
After you create the GitHub App:- Copy the new App ID.
- Copy the new Client ID.
- Generate a new client secret and save it securely.
- Generate a new private key, download the
.pemfile, and save it securely. - Keep the webhook secret you generated in Step 3 available for the Blocks configuration form.
Step 9: Select the GitHub Enterprise (MU) integration
In Blocks, go to Settings > Integrations > GitHub. In the GitHub organization row, choose GitHub Enterprise (MU) from the dropdown, then click Configure.
Step 10: Configure Blocks
Fill in the values from your GitHub App in the configuration dialog.
Click Configure to save the integration.
Step 11: Install the app
Install the GitHub App on the organization and repositories Blocks should access. You can install it on all repositories or choose a selected set, depending on your team’s policy. After installation, you can mention@blocks in issues, pull requests, and pull request review comments in connected repositories.
Troubleshooting
- OAuth redirect fails: Confirm the callback URLs are present and ordered exactly as shown in Step 2.
- Webhook deliveries fail: Confirm the webhook URL, webhook secret, and SSL verification setting match Step 3.
- Blocks cannot read or write repository data: Recheck the repository and organization permissions, then reinstall or update the GitHub App installation.
- Private key errors: Generate a fresh private key in GitHub, update the Blocks configuration, and make sure the pasted value includes the full
BEGINandENDlines.

