Updated: February 25, 2025

GitHub API Token

This guide explains how to generate a GitHub API token.

Repositories

Generating a Personal Access Token (PAT)

Important: The user generating the token must have all the privileges described below.

1. Make sure you are logged into your GitHub account.

2. Go to https://github.com/settings/tokens

3. Click Generate new token -> Generate new token (classic)

4. Fill in the form:

  • Note - enter a name (can be any name).
  • Expiration - specify the token's validity period. It is best to set a range for a year or more. After expiration, the token becomes invalid, and Enji stops updating repository data.
  • Select Scopes - tick off scopes as shown below:

5. Click Generate token. Copy the token and use it when connecting a GitHub repository to a project in Enji.