add-to-project icon indicating copy to clipboard operation
add-to-project copied to clipboard

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

Open aaronArinder opened this issue 3 years ago • 7 comments

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?

aaronArinder avatar Dec 19 '22 14:12 aaronArinder

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

mattcosta7 avatar Jan 03 '23 14:01 mattcosta7

FWIW this was fixed in https://github.com/github/roadmap/issues/622, the docs should probably be updated.

blampe avatar Oct 25 '23 19:10 blampe

What permissions are needed for the fine grained token?

SimenB avatar Oct 30 '23 16:10 SimenB

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

jdanyow avatar Dec 04 '23 23:12 jdanyow

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.

keikoro avatar Jan 26 '24 19:01 keikoro

Correct 👍 - I'm using this action with fine-grained tokens as described in https://github.com/actions/add-to-project/issues/289#issuecomment-1839684489 with a GitHub organization.

jdanyow avatar Jan 28 '24 23:01 jdanyow

👋🏻 It's correct that fine-grained tokens are supported for organization owned projects, and our documentation has been updated to reflect that. It's true that user-owned projects are not accessible with PATv2 at the moment, but this is on our product roadmap.

marywhite avatar Jun 12 '25 19:06 marywhite