You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
personal-access-tokens access can't be updated! #11348
gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
The minimum required scopes are 'repo', 'read:org', 'workflow'.
? Paste your authentication token: *********************************************- gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as calidion
I discussed this with the team and they brought up this existing issue #2531
GitHub current doesn't have an API for creating/updating personal access tokens, so this currently is not possible with the CLI. There's more information in #2531, and I encourage you to drop feedback about updating PATs onto that issue to make it visible.
In the meantime, I'll close this issue as a duplicate of #2531 due to their close similarity and same conclusion. Thank you again ✨
Activity
calidion commentedon Jul 20, 2025
gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
The minimum required scopes are 'repo', 'read:org', 'workflow'.
? Paste your authentication token: *********************************************- gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as calidion
gh repo clone Free-Web-Movement/zz.rs
HTTP 401: Bad credentials (https://api.github.com/graphql)
Try authenticating with: gh auth login
calidion commentedon Jul 20, 2025
no repo can be added!
repo access type can't be updated!
calidion commentedon Jul 20, 2025
even public repo can't be accessed!
BagToad commentedon Jul 21, 2025
Hey @calidion, it sounds like the problem you're experiencing is more to do with the personal access token you have created rather than
gh.What steps did you take to create the personal access token? Did you select to give it access to repositories and scopes?
calidion commentedon Jul 23, 2025
Yes. I am using web page. but gh has the option to use token and the token privileges can't be updated.
BagToad commentedon Jul 25, 2025
Hey @calidion, thank you for clarifying 🙏
I discussed this with the team and they brought up this existing issue #2531
GitHub current doesn't have an API for creating/updating personal access tokens, so this currently is not possible with the CLI. There's more information in #2531, and I encourage you to drop feedback about updating PATs onto that issue to make it visible.
In the meantime, I'll close this issue as a duplicate of #2531 due to their close similarity and same conclusion. Thank you again ✨