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

Fine-grained personal access tokens are not supported #20

Open
oskarwojciski opened this issue Nov 3, 2022 · 0 comments
Open

Fine-grained personal access tokens are not supported #20

oskarwojciski opened this issue Nov 3, 2022 · 0 comments

Comments

@oskarwojciski
Copy link

It is worth mentioning that Fine-grained personal access tokens (beta phase currently) are not supported for this action.

The first problem is that they require to add the user_name with the token during cloning, which is a simple change in the entrypoint.sh

git clone "https://$INPUT_USER_NAME:$API_TOKEN_GITHUB@github.com/$INPUT_DESTINATION_REPO.git" "$CLONE_DIR"

The actual problem is that

HTTP 401: Personal access tokens with fine grained access do not support the GraphQL API (https://api.github.com/graphql)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant