# How to reauthorize Github with a classic token?

To ensure that personal repositories are not integrated with Hivel, it’s important to use a dedicated service account. Follow the steps below to reauthorize GitHub with a service account:

**Step-by-Step Guide**

1. Make sure you have a dedicated service account on GitHub with access to the necessary repositories.
2. Use the credentials for the service account to log into GitHub.
3. Click on the profile icon located at the top-right corner of the GitHub page.
4. From the dropdown menu, select **Settings**.
5. In the left-hand sidebar of the settings page, scroll down and click on **Developer settings**.
6. Under Developer settings, select **Personal access tokens**.
7. Choose **Tokens (classic)** to proceed.
8. Click on **Generate new token**.
9. For the token type, select **Classic**.
10. Name: Add name as "Hivel".
11. Expiration: Select No expiration date. (You can revoke the token once the integration is no longer needed).
12. Ensure the following scopes are selected to provide necessary access:
    1. **repo**: (all scopes)
    2. **org:** (only "read:org")
    3. **hooks:** (all scopes)
    4. **user:** (only "read:user" and "user:email")
13. Once the token is generated, copy it immediately. You will not be able to see it again once you leave the page.\
    Share the following information with Hivel to complete the integration:
    * Personal Access Token
    * Username
    * Email

By following these steps, you can reauthorize GitHub with a service account, ensuring a secure and efficient setup for Hivel integration. For further assistance, contact [<mark style="color:purple;">support@hivel.ai</mark>](mailto:support@hivel.ai).


---

# Agent Instructions: 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:

```
GET https://docs.hivel.ai/integrations/scm/github/alternate-methods/how-to-reauthorize-github-with-a-classic-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
