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

Problems with Pull Requests #159

Closed
Koubek opened this issue Jun 15, 2022 · 3 comments
Closed

Problems with Pull Requests #159

Koubek opened this issue Jun 15, 2022 · 3 comments

Comments

@Koubek
Copy link

Koubek commented Jun 15, 2022

Hello Freddy,

We are experiencing problems with Pull Requests being created during the execution of actions:

pull request create failed: GraphQL: GitHub Actions is not permitted to create or approve pull requests (createPullRequest)

I have found some (hopefully relevant) issues that could correspond:
cli/cli#1820
cli/cli#1985

We are currently using GitHub in trial mode (GitHub Enterprise Cloud trial) as we are basically exploring possibilities. Not sure if this could correspond somehow but I saw something similar (some limitations) when were checking GitLab in trial mode.

@freddydk
Copy link
Collaborator

freddydk commented Jun 15, 2022

In your repository, Settings -> Actions -> General, what do you see under workflow permissions:
image

and what workflows do you have the problem in?
Also - what version of the actions are you using?

@Koubek
Copy link
Author

Koubek commented Jun 15, 2022

Sorry I haven't provided these details:

  • We run on hosted (default) agents. We currently don't use the trial self-hosted agents.
  • We use the latest version of actions.
  • I can see the problem was that Allow GitHub Actions to create and approve pull requests was disabled on the organization level and then inactive also on the repo level.

I will check this again and let you know. Thanks a lot!!!

@Koubek
Copy link
Author

Koubek commented Jun 15, 2022

I can confirm going to the organization level and activation of Allow GitHub Actions to create and approve pull requests made the trick. It's working fine now.

Again, thanks for your quick help!

@Koubek Koubek closed this as completed Jun 15, 2022
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