-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Kodiak unable to update branch due to changed workflow file (maybe bug?) #853
Comments
Hi @paulgessinger, thanks for reaching out I think you may need to accept a new permission for your Kodiak installation. Try navigating to your installation settings and see if Kodiak is requesting new permissions: https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/reviewing-your-organizations-installed-integrations |
Hey @chdsbd, thanks for the tip. I had checked this already and didn't see any request for changed permissions. The relevant page says "Read and write access to checks, code, issues, pull requests, and workflows" for kodiak, which would seem fine to me. |
@paulgessinger okay, this definitely sounds like a bug then. Do you have the pull request where that issue occurred? |
@paulgessinger It looks like it's occurring on this PR: acts-project/acts#1512 One suspect issue is that PR is from a forked repository. Did you allow edits from maintainers in that PR? It's possible this is a GitHub API bug. |
Hey @chdsbd sorry for not digging up a PR earlier. Indeed the "allow edits" option is set: |
@paulgessinger Okay, I think this is a GitHub API bug. Because your installation has the workflow write permission. Additionally, the PR isn't even touching a workflow file. I'm going to open an issue with GitHub, but it might be good for you to do the same if you don't mind. https://support.github.com/contact/bug-report |
Thanks for looking at this. I'll create a bug report! |
My ticket from late October was closed without this being escalated. I got another ping via #857 about this issue, so I've created another GitHub Support ticket. Hopefully I can get that issue escalated to someone that can help from GitHub. |
This is still an issue and I'm still trying to get GitHub Support to recognize this as a bug to escalate to an engineer. I think I've given them a better reproduction step so hopefully we'll get a better response. I'm sorry these bug has been outstanding for so long. I created an example repository here: uncle-boris/github-bug#3 Here's steps to reproduce:
Here's the curl request:
|
Here's maybe more streamlined steps.
It seems that if the pull request from the fork is behind the main repository, and the difference includes a new workflow file on the main branch, we get an error updating the branch. |
There is no permission we can request that will allow the GitHub App to update the branch when the difference includes .github/workflow changes. 😞 I tried giving a GitHub App access to every permission and the app still couldn't update the branch. |
GitHub says this is intended behavior
|
Ok I guess there is no path to 'fix' this then. But at least good to know it's understood. |
I raised the issue a bit more and GitHub Support said they'd relay my concerns to the engineering team and let me know if there's any response. I'll update this issue if I hear anything |
We're using kodiak over on https://github.com/acts-project/acts. It has been working fine for us for quite a while, but now we're getting issues with kodiak failing to update PR branches.
The error message reads:
I did change the branch protection rules a bit, but I think I changed them back with the errors still persisting. I'm attaching screenshots of the branch protection settings down below.
The PR in question does not actually touch the workflow file mentioned in the error message, but I believe the target branch has a commit that changes it, which kodiak tries to merge into the source branch.
Any idea what I might be doing wrong?
The text was updated successfully, but these errors were encountered: