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

Base branch update has failed: refusing to allow a GitHub App to create or update workflow #5055

Open
rix0rrr opened this issue Nov 15, 2022 · 1 comment

Comments

@rix0rrr
Copy link

rix0rrr commented Nov 15, 2022

I have seen this behavior twice recently, on wildly different and unrelated GitHub repositories.

Example 1: https://github.com/aws/aws-cdk/pull/22890/checks?check_run_id=9497347123

Base branch update has failed

refusing to allow a GitHub App to create or update workflow .github/workflows/github-merit-badger.yml without workflows permission
err-code: 17CBF

I have seen the exact same error on this repository: https://github.com/hedyorg/hedy, though I can't find the PR anymore at the moment.

The error seems to occur when Mergify triggers a Branch Update action from the merge queue, when a GitHub workflow file has changed on main in the mean time.

I'm pretty sure this didn't use to happen, so something must have changed. Either the GitHub rules have changed, or something in the Mergify setup has.

Expected Behavior

The fork branch gets updated from main.

Actual Behavior

The fork branch is not updated.

Steps to Reproduce the Problem

  1. Create a fork from a repo
  2. Create a PR
  3. Update any workflow file on the main repo
  4. Embark the PR in the Mergify merge queue

Specifications

@jd
Copy link
Member

jd commented Nov 15, 2022

This is a GitHub App permission problem. If you log into your Mergify dashboard you should see a message requesting you to update the permission for the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants