Personal Access Token in GitHub
Permissions required to backup selected repository metadata
By creating Personal Access Token, you can assign various types of permissions. Below is a list of permissions that will allow you to backup the repository metadata you are interested in in your organization.
Repo - grants access to repositories.
Admin:org - allows you to read the organization's projects.
Project - allows you to read the projects from which the repository comes.
repo_hook - grants access to webhooks.
public_key - grants access to keys.
Remember that if you grant only read permissions, it will be possible to perform a backup, but to restore them, you will have to generate a new token with write permissions.
Last updated