How to create a read-only GitHub API key
Fine-grained tokens are limited to the repositories and permissions you pick.
- 01
Open Fine-grained tokens
SettingsDeveloper settingsPersonal access tokensFine-grained tokens - 02
Click Generate new token, then name it and set an expiration
- 03
Choose the Resource owner
- 04
Under Repository access, choose Only select repositories
- 05
Grant only the permissions you need, at Read
- 06
Click Generate token and copy it
To read clones and traffic, set to Read
- Administration

