Skip to content

personal-access-tokens access can't be updated! #11348

Closed as duplicate
Closed as duplicate

Description

@calidion

Describe the bug

personal-access-tokens can't be updated!

Activity

  1. calidion commented on Jul 20, 2025

    @calidion
    Author

    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

  2. calidion commented on Jul 20, 2025

    @calidion
    Author
    Image

    no repo can be added!
    repo access type can't be updated!

  3. calidion commented on Jul 20, 2025

    @calidion
    Author

    even public repo can't be accessed!

  4. BagToad commented on Jul 21, 2025

    @BagToad
    Member

    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?

  5. added
    platformProblems with the GitHub platform rather than the CLI client
    more-info-neededMore info needed from user/contributor
    on Jul 21, 2025
  6. self-assigned this
    on Jul 21, 2025
  7. calidion commented on Jul 23, 2025

    @calidion
    Author

    Yes. I am using web page. but gh has the option to use token and the token privileges can't be updated.

  8. BagToad commented on Jul 25, 2025

    @BagToad
    Member

    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 ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmore-info-neededMore info needed from user/contributorneeds-triageneeds to be reviewedplatformProblems with the GitHub platform rather than the CLI client

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions