Register a GitHub App on your instance
Create the app on the same GitHub Enterprise Server instance you are connecting. An app registered on GitHub.com does not work here.
Open Developer settings
Sign in to your GitHub Enterprise Server instance.
- Click your profile photo in the upper-right corner, then click Settings
- In the left sidebar, click Developer settings, then GitHub Apps
- Click New GitHub App
Configure the app
Fill in the app details.
- GitHub App name: StackOne
- Homepage URL:
https://stackone.com - Callback URL:
https://api.stackone.com/connect/oauth2/github/callback - Leave Expire user authorization tokens selected
- Leave Request user authorization (OAuth) during installation unselected
- Under Webhook, deselect Active
Set permissions for user access reviews
Under Organization permissions, set Members to Read-only. Under Account permissions, set Email addresses to Read-only. Leave Metadata at its default, Read-only. The connection test reads your own profile, which needs no extra permission.
Add permissions for compliance checks
For branch protection, reviews, checks and audit logs, also set these to Read-only: under Organization permissions, Administration; under Repository permissions, Administration, Contents, Pull requests, Checks and Commit statuses. Organization rulesets need organization Administration set to Read and write.
Add permissions for other actions
Add these only for the actions you plan to use.
Create the app
Under Where can this GitHub App be installed?, select Any account, then click Create GitHub App. On GitHub Enterprise Server the app still stays inside your instance, and Only on this account would stop you installing it on an organization.
Copy the credentials
On the app’s page, copy the Client ID. Under Client secrets, click Generate a new client secret and copy it. GitHub shows it only once.
Install the app
In the app’s sidebar, click Install App, then Install next to each organization StackOne should read, and choose the repositories. For compliance checks choose All repositories; repositories left out are missing from every list, with no error.
Find your server URL
Use the address you open GitHub Enterprise Server at, such as https://github.example.com. Only the host name is used, so a path such as an organization page or /api/v3 is ignored. The connection always uses https://, even if you type http://.
Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- GitHub Enterprise Server URL
- Client ID
- Client Secret
- Organization ID (Optional)
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account in your Accounts page.
Next Steps
Webhooks setup
Configure receiving Events for GitHub into StackOne.