Skip to main content
Skip table of contents

How to generate Personal Access Token in GitHub?

To connect Jira and GitHub instances, we need to create a Personal Access Token (PAT).

Step-by-step instruction

We recommend using a service user for this configuration.

The following steps will help you create a new GitHub Personal access token:

  1. Click on your profile picture in the top-right corner of the page and select Settings from the dropdown menu.

  2. In the left sidebar, click on Developer settings and navigate to the Personal access tokens section.

  3. Click on the Generate new token button. You need to generate one of these two types of tokens:

    1. fine-grained token (repo-scoped);

    2. classic token (for general use).

  4. Provide the required details:

    1. a name or descriptive note for the token to help you remember its purpose and

    2. the expiration date;

    3. for fine-grained tokens, you must select the resource owner; usually, it is an organization.

  5. Select the desired scopes for the token. Scopes determine the access and permissions granted to the token.

  6. Once you've selected the scopes, click on the Generate token button.

  7. GitHub will generate a new Personal Access Token for you. Make sure to copy the token and keep it secure, as it will not be shown again.

Alternatively, you can read here about how to create an Access Token in GitHub.

Permissions scopes

If you create fine-grained tokens, the required minimum of Repository permissions are:

  • Contents → Access: Read and write.

  • Metadata → Access: Read-only.

  • Pull requests → Read and write.

If you create classic tokens, the required is:

  • repo scope to read commits.

Once you have the Personal Access Token, you can proceed with Connection Jira and GitHub instances.

How to set up GitHub or GitLab integration?


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.