Find your GitHub Enterprise Server URL
The GitHub Enterprise Server URL is the address you open GitHub Enterprise Server at. You can paste the address of any page on the instance, such as an organization page, with or without https://.
- Format:
https://<host name> - Example: if a page on your instance is
https://github.example.com/acme-engineering, your URL ishttps://github.example.com
Create a personal access token (classic)
Create the token on the GitHub Enterprise Server instance you are connecting. Any user’s token lists every user on the instance. To read an organization’s members and teams, use a member of that organization. For two-factor status, outside collaborators, rulesets and audit logs, use an organization owner.
Name the token and set an expiration
Sign in to your GitHub Enterprise Server instance, 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 the organization’s two-factor requirement and organization rulesets. repo reads private repositories, pull requests, reviews, branch protection and collaborators. admin:enterprise reads the enterprise audit log for an enterprise owner. The organization audit log needs only read:org.
Add scopes for other actions
Add these only for the actions you plan to use.
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 Personal Access Token across. GitHub shows it only once.
Find your organization ID
The Organization ID is the organization name in your organization’s address on your instance.
- Format:
https://<host name>/<organization ID> - Example: if the organization’s address is
https://github.example.com/acme-engineering, the organization ID isacme-engineering
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.