Optional for public repositories.
STEP-1
Generate Personal Token.
Go to GitHub profile settings > Developer Setting > Personal Access Tokens
Click generate fine grained token.
Choose All or selected repositories.
Required permission scopes:
Contents readonly
Metadata readonly