Skip to content

PAT scopes - unclear correspondence between short names and long names #10131

Description

@erikv85

When using PAT to perform gh auth login, gh says that "The minimum required scopes are 'repo', 'read:org', 'admin:public_key'.". It is not clear which options these short names correspond to in the list of permissions shown when generating a PAT. See attached image.

Because the correspondence is not clear, it's furthermore not clear how to create a PAT with the minimum scopes - instead, I have to use all scopes.

Image

Activity

  1. jtmcg commented on Dec 23, 2024

    @jtmcg
    Contributor

    Hey @erikv85, it looks like you're trying to use a Fine-grained token. As far as I know, the CLI doesn't support Fine-grained tokens. You should use a "classic" token instead. The permission names 'repo', 'read:org', and 'admin:public_key' map 1:1 with permissions there:

    Image

    Perhaps an indication that the token required for auth is a "classic" token in the token prompt would have been helpful?

  2. added
    more-info-neededMore info needed from user/contributor
    and removed on Dec 23, 2024
  3. self-assigned this
    on Dec 27, 2024
  4. erikv85 commented on Dec 30, 2024

    @erikv85
    Author

    Hi @jtmcg , thanks for the quick reply. Yes, I think an indication of some sort that a classic token must be used could be helpful. I'm not sure much else could be done to help users, quite frankly.

  5. jtmcg commented on Jan 2, 2025

    @jtmcg
    Contributor

    Acceptance Criteria

    • The documentation message for gh auth login mentions that GitHub classic tokens are used for auth with gh
  6. removed their assignment
    on Jan 2, 2025
  7. added
    gh-authrelating to the gh auth command
    and removed
    more-info-neededMore info needed from user/contributor
    on Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gh-authrelating to the gh auth commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions