mnyon-grandkru / knowledgebase

An issue tracker of error messages discovered while developing as well as their solution.
https://github.com/mnyon-grandkru/knowledgebase/issues
MIT License
2 stars 0 forks source link

Unable to set delete_repo on authentication_token #104

Closed mnyon-grandkru closed 8 months ago

mnyon-grandkru commented 1 year ago

I'm getting this error message when attempting to delete a repository from the command line:

➜  fantasm-vue2 git:(main) gh repo delete lerna-poc --yes
HTTP 403: Must have admin rights to Repository. (https://api.github.com/repos/mnyon-grandkru/lerna-poc)
This API operation needs the "delete_repo" scope. To request it, run:  gh auth refresh -h github.com -s delete_repo
mnyon-grandkru commented 1 year ago

This persists even after running the refresh scope requested. My next step is to create a new Personal Access Token with delete_repo explicitly permitted.

mnyon-grandkru commented 8 months ago

Found a fix in this issue: https://github.com/cli/cli/discussions/6884. Weird that that works, but that's okay.