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

Request: Document PAT permissions requirements for machine accounts #2387

Closed
joshlf opened this issue Sep 23, 2023 · 2 comments
Closed

Request: Document PAT permissions requirements for machine accounts #2387

joshlf opened this issue Sep 23, 2023 · 2 comments

Comments

@joshlf
Copy link

joshlf commented Sep 23, 2023

I'm following the steps described here using this machine account to submit PRs to zerocopy. My current attempt is here, with the latest GitHub Actions failure here.

It'd be awesome if those docs could explain what permissions a PAT needs in order for this flow to succeed. I'm not positive, but my guess is that I'm not granting the PAT the right permissions in this case, which is the cause of the failure.

@peter-evans
Copy link
Owner

Hi @joshlf

I think what you are experiencing is the same as this issue: #1791

I guess you are trying to use a fine grained access token. They are still in beta and don't work for all GitHub APIs yet. Please use a classic PAT with repo scope, as described in the above linked issue. You also need 'workflow' scope if the generated PR will ever contain changes to the .github/workflows directory.

@joshlf
Copy link
Author

joshlf commented Sep 23, 2023

That worked perfectly, thanks for the help!

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