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

Error Command is not configured for the user's permission level 'none' #267

Open
FabrizioCafolla opened this issue Sep 1, 2023 · 3 comments

Comments

@FabrizioCafolla
Copy link

The fine-grained personal access tokens set with:

  • Organization permissions > Administration > Read and Write

Make error:

Command is not configured for the user's permission level 'none'

@peter-evans
Copy link
Owner

Hi @FabrizioCafolla

I know that fine-grained access tokens are not supported in all GitHub APIs yet, so that might be the problem. Fine-grained access tokens are still in beta. Please try classic tokens.

@alextreppass
Copy link

Any plans to allow the new fine-grained tokens? I have a sense it's nearly working:

Run peter-evans/slash-command-dispatch@v3
  with:
    token: ***
    commands: example
  
    repository: MyOrg/my-repo
    reaction-token: ***
    reactions: true
    permission: write
    issue-type: both
    allow-edits: false
    event-type-suffix: -command
    dispatch-type: repository
Using configuration from yaml inputs.
Command 'example' to be dispatched.
Error: Resource not accessible by personal access token

but I'm not 100% sure which scopes to pick for it. I'll keep iterating...

@peter-evans
Copy link
Owner

@alextreppass This action is not doing anything to explicitly prevent the fine-grained access tokens from working, they just might not work as expected because they are still in beta and not all GitHub APIs support them yet. Based on your experiment, looks like that is still the case.

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

3 participants