alexcmgit
@alexcmgit
Creating a fine-grained GitHub access token that has permission only over a specific single repository
Creating a fine-grained GitHub access token that has permission only over a specific single repository

1. Login into your account

First step is to login into your GitHub account at https://github.com.

2. Go to settings

Open your profile settings: https://github.com/settings/profile.

3. Go to Developer settings

4. Click Personal access tokens > Fine-grained tokens > Generate new token

5. Configure your token > Generate token

Captions:

  1. It's your token name, does not affect your token permissions or behavior.
  2. Expiration date, the maximum lifespan of a fine-grained token is 1 year. After this date the token will become unusable.
  3. Resource owner, personal accounts have only 1 option, the account itself.
  4. Target repositories, select the repositories you want to have access with this token. Less is better.
  5. These are all permissions you can add to your token. Less is better.

Then click Generate token.

6. Copy your token and save it somewhere

Remember: this string gives anyone the permission to access the token-specific granted resources, so treat it like a password, never show to anyone neither make it publicly available.

Other posts

you reached the end
296e001