# Personal Access Token (PAT)

1. Create a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) in GitHub.

{% hint style="info" %}
For a classic token, selecting the `repo` scope is **required**.
{% endhint %}

<figure><img src="https://2054987018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSOOCh6RFWjUVTIii6J%2Fuploads%2FWTvLOpVPj56IOMSLY8Uy%2Fimage.png?alt=media&#x26;token=78530dd2-480d-44a6-8036-74186f77c50e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can also use a new fine-grained personal access token. In that case, select: **Permissions** → **Contents** → **Read and write access**.
{% endhint %}

2\. Go to your Jira instance.&#x20;

3\. Click on the "GitHub Enterprise PAT" button (available on Issue View, Configuration, and Project Configuration).

<figure><img src="https://2054987018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSOOCh6RFWjUVTIii6J%2Fuploads%2FQj8PGhgEhqKl2ME2RlRL%2Fimage.png?alt=media&#x26;token=8643515a-bb97-49ae-ba18-2b4c1c2284f4" alt=""><figcaption></figcaption></figure>

4\. "Add a personal access token" will appear.

<figure><img src="https://2054987018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSOOCh6RFWjUVTIii6J%2Fuploads%2Fe1SqtgsVf9U8OvVRRGcr%2Fimage.png?alt=media&#x26;token=11c46048-0683-4b59-a082-ec43f0eda832" alt=""><figcaption></figcaption></figure>

5\. Provide your GitHub API URL and an access token.

6\. Click on the Save button.
