Generating a Personal Access Token
You can create a personal access token for GitHub in two ways:
Using GitHub CLI
- Install the Github CLI if you havenโt already.
- Log in by running
gh auth login. - 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
- Go to the Personal Access Tokens section in your GitHub settings.
- Click "Generate new token (classic)".
- Select the required scope.
- Save the generated token.
- Click "Configure SSO", search for "PIT-Shared," and click "Authorize".