Find your GHE.com subdomain
The GHE.com subdomain is the part before .ghe.com in your enterprise’s address.
- Format:
https://<subdomain>.ghe.com - Example: if your address is
https://acme.ghe.com, your subdomain isacme
Register a GitHub App in your enterprise
Create the app inside the GHE.com enterprise you are connecting, signed in as an organization owner.
Start a new GitHub App
Sign in to https://<subdomain>.ghe.com, then open Settings > Developer settings > GitHub Apps.
- Click New GitHub App.
Fill in the basic information
Name the app at the top of the form.
- GitHub App name:
StackOne - Homepage URL: your company’s website
Set up user authorization
Fill in the Identifying and authorizing users section.
- Redirect URI: copy it from your Connector Profile
- Leave Expire user authorization tokens selected.
- Leave Request user authorization (OAuth) during installation cleared.
Turn off the webhook
Under Webhook, clear Active.
Set permissions for user access reviews
Set each of these to Read-only. Metadata is already Read-only.
- Organization permissions > Members
- Account permissions > Email addresses
Add permissions for compliance checks
Set each repository permission to Read-only, and choose the access for organization Administration.
- Organization permissions > Administration: Read-only, or Read and write to also read organization rulesets
- Repository permissions > Administration
- Repository permissions > Contents
- Repository permissions > Pull requests
- Repository permissions > Checks
- Repository permissions > Commit statuses
Add permissions for other actions
Add these only for the actions you plan to use.
Create the app
At the bottom of the form, find Where can this GitHub App be installed?.
- Select This enterprise.
- Click Create GitHub App.
Copy the credentials
Both credentials are on the app’s page.
- Copy the Client ID across.
- Under Client secrets, click Generate a new client secret.
- Copy the Client Secret across. GitHub shows it only once.
Install the app
In the app’s sidebar, open Install App.
- Click Install next to each organization StackOne should read.
- Select All repositories.
- Click Install.
Find your organization ID
The Organization ID is the organization name in your organization’s address on GHE.com.
- Format:
https://<subdomain>.ghe.com/<organization ID> - Example: if the organization’s address is
https://acme.ghe.com/acme-engineering, the organization ID isacme-engineering
What GitHub reports for managed users
Managed users sign in and use two-factor authentication through your identity provider, so the two-factor status GitHub shows for them is always off.
Link the Account
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.
Use Actions
Next Steps
Webhooks setup
Configure receiving Events for GitHub into StackOne.