How to reauthorize Github with a service account?

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. (Note: Fine-grained tokens are still in beta and may have some challenges).

  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 support@hivel.ai.

Last updated