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
Create a personal access token (classic)
Create the token as a managed user who owns each organization StackOne should read. To list the whole enterprise, use a managed enterprise owner who also owns those organizations.
Name the token and set an expiration
Sign in to https://<subdomain>.ghe.com, then open Settings > Developer settings > Personal access tokens > Tokens (classic).
- Click Generate new token.
- Select Generate new token (classic).
- Note:
StackOne - Expiration: a period that fits your rotation policy
Select scopes for user access reviews
Select each scope listed.
Add scopes for compliance checks
admin:org adds organization rulesets. repo reads private repositories, pull requests, reviews, branch protection and collaborators. read:audit_log reads the organization audit log for an organization owner and the enterprise audit log for an enterprise owner.
Add scopes for other actions
Add only the scopes your actions need. If you selected repo, it already includes repo_deployment and security_events.
Generate the token
Scroll to the bottom of the form.
- Click Generate token.
Copy the token
GitHub shows the new token on the page that opens.
- Copy the token across. GitHub shows it only once.
Authorize the token for single sign-on
If a Configure SSO button appears next to the token, authorize it. Otherwise skip this step.
- Click Configure SSO.
- Click Authorize next to your enterprise or each organization.
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
Find your enterprise slug
The Enterprise slug is the last part of your enterprise’s address, usually the same as your subdomain.
- Format:
https://<subdomain>.ghe.com/enterprises/<enterprise slug> - Example: if the enterprise’s address is
https://acme.ghe.com/enterprises/acme, the enterprise slug isacme - A user appears once they sign in or join an organization. Enterprise members who never signed in and belong to no organization are not listed.
- Someone whose only tie is a pending organization invitation shows as pending.
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.