Skip to main content
Owner privileges in your GitHub organization or admin access to your GitHub account are required to create a GitHub App.

Register a GitHub App

Create the GitHub App under your personal account or under the organization StackOne should read.

1

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.
2

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
3

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.
4

Turn off the webhook

Under Webhook, clear Active.

5

Add permissions for access reviews and compliance checks

Enables actions: Check Organization Membership, Create Pull Request, Create Pull Request Review, Create Pull Request Review Comment, Get Branch, Get Branch Protection, Get Branch Rules, Get Combined Status For Ref, Get Commit, Get Git Reference, Get Latest Release, Get Organization, Get Organization Membership, Get Organization Ruleset, Get Pull Request, Get Repository, Get Repository Content, Get Repository Ruleset, Get Team, Get Unified Group, Get Unified Organization, Get Unified Role, Get User, List Authenticated User Organizations, List Authenticated User Repositories, List Branches, List Check Runs For Ref, List Collaborators, List Commits, List Forks, List Matching Git References, List Organization Audit Log, List Organization Branch Protection, List Organization Members, List Organization Members With Two-Factor Status, List Organization Repositories, List Organization Rulesets, List Outside Collaborators, List Pull Request Reviews, List Pull Requests, List Pull Requests For Commit, List Releases, List Repository Rulesets, List Repository Teams, List Team Members, List Team Repositories, List Teams, List Unified Groups, List Unified Organizations, List Unified Roles, List Unified Users, List User Organizations, List User Repositories, List Users, Merge Pull Request, Search Code, Search Issues, Search Pull Requests With Reviews, Search Repositories, Update Organization, Update Pull Request

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
6

Add permissions for other actions

Enables actions: Add Collaborator, Add Team Member, Add Team Repository, Cancel Workflow Run, Check Organization Membership, Create Deployment, Create Deployment Status, Create Git Reference, Create Issue, Create Issue Comment, Create Or Update File, Create Organization Repository, Create Pull Request, Create Pull Request Review, Create Pull Request Review Comment, Create Release, Create Team, Create User Repository, Create Webhook, Delete Deployment, Delete File, Delete Git Reference, Delete Release, Delete Repository, Delete Team, Delete Webhook, Download Artifact, Fork Repository, Get Authenticated User, Get Branch, Get Branch Protection, Get Branch Rules, Get Combined Status For Ref, Get Commit, Get Git Reference, Get Issue, Get Latest Release, Get Organization, Get Organization Membership, Get Organization Ruleset, Get Pull Request, Get Repository, Get Repository Content, Get Repository Ruleset, Get Team, Get Unified Credentials, Get Unified Group, Get Unified Organization, Get Unified Role, Get User, Get Webhook, Get Workflow Run, Invite Organization Member, List Artifacts, List Authenticated User Organizations, List Authenticated User Repositories, List Branches, List Check Runs For Ref, List Code Scanning Alerts, List Collaborators, List Commits, List Dependabot Alerts, List Deployments, List Forks, List Issue Comments, List Issues, List Matching Git References, List Organization Audit Log, List Organization Branch Protection, List Organization Members, List Organization Members With Two-Factor Status, List Organization Repositories, List Organization Rulesets, List Outside Collaborators, List Pull Request Reviews, List Pull Requests, List Pull Requests For Commit, List Releases, List Repository Rulesets, List Repository Teams, List Secret Scanning Alerts, List Team Members, List Team Repositories, List Teams, List Unified Groups, List Unified Organizations, List Unified Roles, List Unified Users, List User Organizations, List User Repositories, List Users, List Webhooks, List Workflow Jobs, List Workflow Runs, Merge Pull Request, Ping Webhook, Re-run Workflow, Remove Collaborator, Remove Organization Member, Remove Team Member, Search Code, Search Issues, Search Pull Requests With Reviews, Search Repositories, Star Repository, Trigger Workflow, Unstar Repository, Update Code Scanning Alert, Update Dependabot Alert, Update Git Reference, Update Issue, Update Organization, Update Pull Request, Update Release, Update Repository, Update Secret Scanning Alert, Update Team, Update User, Update Webhook, Upload Release Asset

Add these only for the actions you plan to use.

7

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.
8

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.
9

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.
10

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

1

Create a Connector Profile

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.
2

Link an Account

Once the Connector Profile is created, continue to link an account.