Using personal access tokens
Create a personal access token in GitHub.
For a classic token, selecting the repo scope is required.

You can also use a new fine-grained personal access token. In that case, select: Permissions → Contents → Read and write access.
2. Go to your Jira instance.
3. Click on the "GitHub Enterprise PAT" button (available on Issue View, Configuration, and Project Configuration).

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

5. Provide your GitHub API URL and an access token.
6. Click on the Save button.