Skip to content

Generating a Personal Access Token

You can create a personal access token for GitHub in two ways:

Using GitHub CLI

  1. Install the Github CLI if you havenโ€™t already.
  2. Log in by running gh auth login.
  3. Generate a token by running gh auth token.

Be aware: GitHub CLI tokens are limited in the scope, for extended scope use the GitHub settings!

Using GitHub Settings

  1. Go to the Personal Access Tokens section in your GitHub settings.
  2. Click "Generate new token (classic)".
  3. Select the required scope.
  4. Save the generated token.
  5. Click "Configure SSO", search for "PIT-Shared," and click "Authorize".