> For the complete documentation index, see [llms.txt](https://docs.ox.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ox.security/get-started/onboarding-to-ox/source-control/github/github-token/getting-github-tokens.md).

# Getting GitHub Tokens

When integrating with [GitHub](/get-started/onboarding-to-ox/source-control/github.md) source control and [GitHub Issues](/ticketing-and-messaging/ticket-management/github-issues.md), you need to get GitHub tokens.

**To get GitHub tokens:**

1. Log in to your GitHub account.
2. From your profile picture in the top-right corner select **Settings**, then scroll down and select **Developer settings**.

<figure><img src="/files/E6tMtXcN2HfvqqLIs2Wz" alt="" width="563"><figcaption></figcaption></figure>

3. In the **Developer settings** page, select **Personal access tokens > Tokens (classic)** and define the parameters as follows.

<figure><img src="/files/9dKRoJivkNxFPg1rT3eF" alt="" width="563"><figcaption></figcaption></figure>

| Parameter         | Description                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name**          | A significant name that makes it easy to identify the purpose of the token.                                                                                                                                                                                                                                                                                                                                                       |
| **Expiration**    | Set the expiration date as far as possible.                                                                                                                                                                                                                                                                                                                                                                                       |
| **Select scopes** | <p>By selecting scopes you define the access permissions.<br></p><p>For GitHub source control - OX integration, select the following scopes:</p><ul><li>repo</li><li>read:packages</li><li>read:org</li><li>read:repo\_hook</li><li>read:user</li><li>user:email</li><li>read:audit\_log</li></ul><p>For GitHub Issues - OX integration, select the following scopes:</p><ul><li>repo</li><li>project</li><li>read:user</li></ul> |

4. Select **Update token**.

<figure><img src="/files/v9aoMXFSCNzMOclvJYO2" alt=""><figcaption></figcaption></figure>

5. Copy the token and store it in a different location.\
   After closing this dialog you cannot see it again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ox.security/get-started/onboarding-to-ox/source-control/github/github-token/getting-github-tokens.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
