Challenge,
In this challenge, you'll practice creating and using fine-grained access tokens on GitHub.
Fine-grained access tokens offer more granular control over permissions compared to traditional personal access tokens. They allow you to specify exactly what actions a token can perform and on which resources.
Go to the Fine-grained access tokens page and create a new token:
- Limit the token's scope to a private repository (create a new one if necessary)
- Set the Contents permission to Read-only
Clone the repository (using its HTTPS URL).
Hint 1 💡
You can use the GitHub CLI (gh
) to clone the repository into a directory named repo
:
gh repo clone <repository> repo
or
git clone https://github.com/<username>/<repository>.git repo