codeball-action icon indicating copy to clipboard operation
codeball-action copied to clipboard

Permissions errors with GitHub Action

Open DwayneJengSage opened this issue 2 years ago • 4 comments

Hi! I'm trying out Codeball on my repository. However, I keep getting permissions errors. I have confirmed that the settings in my repo match the settings described on the README. However, no matter what I do, it keeps saying GITHUB_TOKEN Permissions PullRequests: Read.

See https://github.com/Sage-Bionetworks/BridgeServer2/actions/runs/4466786157/jobs/7845904574

I then tried installing the Codeball AI Writer to my repositories as a workaround to my permissions issue, and now I'm getting an Internal Server Error instead, and I'm stumped. I re-ran the action with debug information, and I'm stumped. I'm not sure how to progress from here: https://github.com/Sage-Bionetworks/BridgeServer2/actions/runs/4466786157/jobs/7846088536

Thanks in advance!

DwayneJengSage avatar Mar 21 '23 00:03 DwayneJengSage

We're seeing the same issue, but only for forked PRs. I believe security policy is preventing PR write permissions for fork PRs.

keatsk avatar May 16 '23 13:05 keatsk

~Likewise seeing this issue for PRs from a repo generated from a template: https://github.com/adnauseum/one-tab-mode/actions/runs/5002092471/jobs/8961615652~

☝️ I fixed my permission errors by visiting: https://github.com///settings/actions and modifying settings in Workflow permissions. It's listed in the troubleshooting docs: https://github.com/sturdy-dev/codeball-action#troubleshooting

I'm curious @keatsk and @DwayneJengSage, what do those settings look like for you? Is "Allow GitHub Actions to create and approve pull requests" checked, for example?

adnauseum avatar May 17 '23 11:05 adnauseum

I'm curious @keatsk and @DwayneJengSage, what do those settings look like for you? Is "Allow GitHub Actions to create and approve pull requests" checked, for example?

Yes, that's already checked for me.

DwayneJengSage avatar May 18 '23 00:05 DwayneJengSage

I'm curious @keatsk and @DwayneJengSage, what do those settings look like for you? Is "Allow GitHub Actions to create and approve pull requests" checked, for example?

Yes, that's already checked for me.

Ack. Then I have nothing more for you 😭

adnauseum avatar May 22 '23 20:05 adnauseum