Register a GitHub App
Create the GitHub App under your personal account or under the organization StackOne should read.
Start a new GitHub App
Sign in to your GitHub account, then open the GitHub Apps page for the account that will own the app.
- Personal account: Open Settings > Developer settings > GitHub Apps.
- Organization: Open the organization, 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 Integration, or a name you prefer - Homepage URL: your company’s website
Set up user authorization
Fill in the Identifying and authorizing users section.
- Callback URL: copy it from your Connector Profile
- Select Expire user authorization tokens.
- Clear Request user authorization (OAuth) during installation.
Turn off the webhook
Under Webhook, clear Active.
Add permissions for access reviews and compliance checks
For user access reviews, two-factor status, branch protection, reviews and checks, set each of these to Read-only, and choose the access for organization Administration.
- Organization permissions > Members
- Organization permissions > Administration: Read-only, or Read and write to also read organization rulesets
- Repository permissions > Administration
- Repository permissions > Metadata
- 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 Only on this account or Any account. Only on this account lets you install the app only on the account it is registered under, so register it under the organization to install it there.
- Click Create GitHub App.
Copy the credentials
Both credentials are on the app’s page, which opens after you create the app.
- Copy the Client ID into your Connector Profile.
- Under Client secrets, click Generate a new client secret.
- Copy the Client Secret into your Connector Profile. GitHub shows it only once.
Turn on refresh tokens
In the app’s sidebar, open Optional features.
- Next to User-to-server token expiration, click Opt-in. If the button reads Opt-out, it is already on.
Install the app
Install the app on your account or organization to give access to private repositories, organization data and app-level permissions. You can install it before or after an account is linked.
- In the app’s sidebar, click Install App.
- Click Install next to the account or organization StackOne should read.
- Select All repositories, or select specific repositories. For compliance checks, select All repositories so every repository is included.
- Click Install.
Create the StackOne Connector Profile
Create a Connector Profile
Link an Account