Skip to content

How to set delete_repo scope only for specific repositories? #2230

Answered by gr2m
lyqht asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately no, OAuth Scopes are global.

An alternative would be to register a GitHub App with administration:write permission, install the app on the repositories you want, and then delete the repositories using the app's credentials, see the README example (instead of creating a dispatch event, delete the repository)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lyqht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants