# Add a GitHub registry

{% hint style="info" %}
The GitHub registry option is only available in Portainer Business Edition.
{% endhint %}

From the menu select **Registries** then click **Add registry** and select **GitHub** as the registry provider.

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-685cc28b5258cd608d2efb155f289067ff21fd6c%2F2.17-registries-add-github.gif?alt=media" alt=""><figcaption></figcaption></figure>

Complete the form, using the table below as a guide.

| Field/Option              | Overview                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                      | Enter the name you'd like to use in Portainer for your registry.                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Username                  | Enter the username you use to log into your GitHub registry.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Personal Access Token     | <p>Enter the personal access token (classic) that corresponds to the username above. Your personal access token (classic) will need the <code>delete:packages</code>, <code>repo</code>, and <code>write:packages</code> scopes assigned.<br>GitHub <a href="https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry">does not currently support</a> the use of fine-grained tokens for registry access.</p> |
| Use organisation registry | Toggle this on if your registry is part of a Github organization.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Organisation name         | Enter the name of your GitHub organization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

<figure><img src="https://3850702872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXI7douejaBgpZ6CP2zJf%2Fuploads%2Fgit-blob-872ddaab589e9588cacd0303f68460152457e9e6%2F2.17-registries-add-ghcr-details.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For more information about creating a personal access token, see [GitHub's own documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).
{% endhint %}

When the form is complete, click **Add registry**.
