Skip to content
Discussion options

You must be logged in to vote

You’re correct — GitHub does not currently provide an OAuth scope that allows read-only access to private repositories. The available scopes for repositories are:

repo → full read/write access to private repos

repo:status, repo_deployment, etc. → more granular, but still not strictly “read-only” for private repos

For public repositories, the public_repo scope exists, but there isn’t an equivalent “read-only private repo” scope today.

If your use case requires strictly read-only access, the best options are:

Use a fine-grained personal access token (PAT) where you can limit to read-only on specific repositories.

Or request this feature by opening a ticket/feedback with GitHub Support
or on…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by albertz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage
3 participants