Terry Windwalker
Terry Windwalker

Reputation: 1886

GitHub OAuth2 Token: How to restrict access to read private repo

I checked the following link and there's only scopes for full access of repos. Is there any way I can restrict access to read only?

https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps

Upvotes: 0

Views: 626

Answers (1)

Terry Windwalker
Terry Windwalker

Reputation: 1886

Turns out if no repo-related scope is provided on creating the token, you will be able to read public repo.

Looks like there is no way to only read public AND private repo at this moment.

Upvotes: 1

Related Questions