Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Personal access tokens with fine grained access do not support the GraphQL API #289

Open
aaronArinder opened this issue Dec 19, 2022 · 6 comments

Comments

@aaronArinder
Copy link

with a PAT that has both repo and project scopes, I'm getting the following when trying to use the action:

Personal access tokens with fine grained access do not support the GraphQL API

Let me know if there's any troubleshooting I can do on my end; also, I'm wondering if this is a known issue?

@mattcosta7
Copy link
Contributor

@aaronArinder only classic PATs currently are supported by the api that drives this action. Use a classic PAT instead of a fine grained one

@blampe
Copy link

blampe commented Oct 25, 2023

FWIW this was fixed in github/roadmap#622, the docs should probably be updated.

@SimenB
Copy link

SimenB commented Oct 30, 2023

What permissions are needed for the fine grained token?

@jdanyow
Copy link

jdanyow commented Dec 4, 2023

Fine grained tokens work provided the token has the following:

  • Repositories
    • Issues: Read
    • Metadata: Read
  • Organization
    • Projects: Read and Write

CleanShot 2023-12-04 at 15 04 36@2x

@keikoro
Copy link

keikoro commented Jan 26, 2024

Fine grained tokens work

You forgot about the non-negligible caveat that so far, project permissions are only available to organization accounts.

There is no such option when the "resource owner" of a fine-grained token is a regular user.

@jdanyow
Copy link

jdanyow commented Jan 28, 2024

Correct 👍 - I'm using this action with fine-grained tokens as described in #289 (comment) with a GitHub organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants