Generating a personal access token in GitHub involves the following steps:
1. Login to GitHub:
Login to your GitHub account.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/12-1-1024x484.png)
2. Go to Settings:
In the upper-right corner of any page, click your profile photo, then click Settings
.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/01-copy-2-1024x412.png)
3. Go to Developer settings:
In the left sidebar, click Developer settings
.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/02-copy-6-1024x274.png)
4. Go to Personal access tokens:
In the left sidebar, click Personal access tokens
.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/03-copy-2-1024x265.png)
5. Generate New Token:
Click Generate new token
.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/04-copy-2-1024x263.png)
6. Fill out the Form:
Give your token a descriptive name.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/06-copy-4-1024x398.png)
Select the scopes or permissions you’d like to grant this token. To use your token to access repositories from the command line, select repo
. For creating a repository via Terraform, you will need the following scopes: repo
, admin:org
.
![](https://rushiinfotech.in/wp-content/uploads/2023/08/07-copy-3-1024x406.png)
Click Generate token
.
7. Copy the Token:
After clicking Generate token
, make sure to copy the token. You won’t be able to see it again!
![](https://rushiinfotech.in/wp-content/uploads/2023/08/08-copy-3-1024x219.png)
8. Store the Token Safely:
Save the token somewhere safe. If you lose it, you will need to create a new one.
Remember to keep your tokens secret and safe, as they are like passwords. Do not share your token with anyone.