Skip to content

Support fine-grained Personal Access Tokens (PAT v2) #6680

@daenney

Description

@daenney

Describe the feature or problem you’d like to solve

The gh CLI seems to currently not support fine grained access tokens. This is unfortunate as I'd like to use it in GitHub Actions to do things like create a PR, without having to hand it a traditional access token.

Proposed solution

Fine grained access tokens are supported for all operations in the CLI. This would require the GraphQL API to support them.

Additional context

 HTTP 401: Personal access tokens with fine grained access do not support the GraphQL API (https://api.github.com/graphql)
Try authenticating with:  gh auth login

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedenhancementa request to improve CLIplatformProblems 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