Skip to content

Issues using fine-grained tokens #227

@tpluscode

Description

@tpluscode

I have been trying to use fine-grained PAT to submit a new spec to withfig/autocomplete using the action.

I wanted to use a fork at our org zazuko/autocomplete but when that did not work initially, I created a personal fork at tpluscode/autocomplete

So far, only a classic token worked, which created a PR from the tpluscode form

Trying fine-grained tokens, I would get various errors despite having set it up with the mentioned permissions

HttpError: Resource not accessible by personal access token - https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository

HttpError: Resource not accessible by integration - https://docs.github.com/rest/users/users#get-the-authenticated-user

HttpError: Resource not accessible by personal access token - https://docs.github.com/rest/pulls/pulls#create-a-pull-request

Overall, I think the action is missing a setting to say which is the fork to use. Right now there is way to decide between zazuko/autocomplete and tpluscode/autocomplete, is there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions