< All Topics

How to create a personal Fine-grained token for your private GitHub repo

Using personal fine-grained tokens is a good way to provide access to certain private repositories.

Here is how you can obtain and use the one in the plugin.

Firstly, go to Settings:

GitHub profile settings

Now go to Developer Settings

GitHub profile settings

Then go to the Fine-grained tokens page:

GitHub profile settings

Now click on the Generate new token button and populate the fields like Token name and Expiration (you can choose any amount of days, but keep in mind if you don’t want to regenerate it again, then you can set it to No expiration):

GitHub profile settings

Then we need to select repositories you want to have access to with this token:

GitHub profile settings

Now, we need to set the right permissions; we need to set Contents and Metadata to Read-only.

GitHub profile settings
GitHub profile settings

Now click on Create and copy the newly generated token and paste it here while installing the plugin or theme:

GitHub profile settings