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

style workflow fails due to lack of repository permissions #774

Closed
thisisnic opened this issue Oct 31, 2023 · 2 comments
Closed

style workflow fails due to lack of repository permissions #774

thisisnic opened this issue Oct 31, 2023 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@thisisnic
Copy link
Contributor

I found this issue on a private repo, but set up a dummy repo to test my hypotheses here. The style action fails with a 403 (forbidden) error:

remote: Permission to thisisnic/testingghactions.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/thisisnic/testingghactions/': The requested URL returned error: 403
Error: Process completed with exit code 128.

I believe that the cause of it could be a change in the default permissions that the GITHUB_TOKEN uses from February, which switched permissions from read/write to read-only.

Describe the bug
"Commit and push changes" step of 'style' action fails

To Reproduce
Failed build here: https://github.com/thisisnic/testingghactions/actions/runs/6703972117/job/18215481594

Expected behavior
The step successfully pushes changes to the branch

Additional context

If I add write permissions to the pull-requests, this issue persists: https://github.com/thisisnic/testingghactions/actions/runs/6704107978/job/18215883920

If I add write permissions to the contents, then the job now works: https://github.com/thisisnic/testingghactions/actions/runs/6704148262/job/18216003844

After doing more digging around, this looks like it's basically the same issue as was fixed for the pkgdown build-and-deploy step actually; I'll submit a PR.

@gaborcsardi
Copy link
Member

This is fixed now by #775.

Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants