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

How to use with fine-grained PAT? #124

Open
olljanat opened this issue Jan 10, 2023 · 1 comment
Open

How to use with fine-grained PAT? #124

olljanat opened this issue Jan 10, 2023 · 1 comment

Comments

@olljanat
Copy link

GitHub recently added support for fine-grained personal access tokens and it would be nice to have documented here that how to create one of those for github-release.

@marco-m-pix4d
Copy link

marco-m-pix4d commented Jan 31, 2024

Looking at the GitHub documentation, I thought that RW for https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-contents would have been enough.

By trial and error, it turns out that you also need in theory R only, but it seems the UI forces to give RW, also for https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-workflows

In the token summary page, I have

Repository permissions
- Read access to metadata
- Read and Write access to code and workflows

and this allowed me to make a draft release.

EDIT

I now think that the error I was seeing

error: could not find the release corresponding to tag v0.8.0

was more due to eventual consistency on the GitHub side than the need of having also permissions for Workflows ...

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

2 participants