renovatebot / config-help

Please use the Discussions feature of https://github.com/renovatebot/renovate instead
https://github.com/renovatebot/renovate/discussions
MIT License
27 stars 16 forks source link

Automerge for protected master branches #152

Closed sidharthachatterjee closed 5 years ago

sidharthachatterjee commented 5 years ago

Which Renovate are you using? CLI, App, or Pro

App

Which platform are you using? GitHub, GitLab, Bitbucket Azure DevOps

GitHub

Have you checked the logs? Don't forget to include them if relevant

Not relevant

What is your question?

The documentation at https://renovatebot.com/docs/configuration-options/#automerge mentions

Warning: GitHub currently has a bug where automerge won't work if a GitHub Organization has protected their master branch, and there is no way to configure around this. Hence, automerging will try and fail in such situations. This doc will be updated once that bug/limitation is fixed by GitHub.

Do we have an update or ETA on this? Protecting the master branch is fairly standard and this seems like a major limitation. 😞 I understand that it's a GitHub issue and probably not in your control.

rarkins commented 5 years ago

I need to update those docs to be more specific. Here's the fuller details:

rarkins commented 5 years ago

@sidharthachatterjee what type of branch protection do you have enabled?

sidharthachatterjee commented 5 years ago

@rarkins This is on https://github.com/gatsbyjs/gatsby/ untitled

rarkins commented 5 years ago

@sidharthachatterjee re your rules:

Unfortunately this means no automerge!

As background, the bot runs and gains its privileges as "renovate[bot]", which is a pseudo user. We also use "renovate-bot" which is a real user to perform signed commits, because bots signing commits is yet another github bot shortcoming.

Out of curiosity, if we added the option for you to add @renovate-bot as someone allowed to push to master, would you use it? i.e. would the convenience advantage of letting the bot automerge be worth the "security risk" of adding a third party collaborator to the project?

sidharthachatterjee commented 5 years ago

Thank you for your detailed review of our rules, @rarkins. We really appreciate this.

Out of curiosity, if we added the option for you to add @renovate-bot as someone allowed to push to master, would you use it? i.e. would the convenience advantage of letting the bot automerge be worth the "security risk" of adding a third party collaborator to the project?

We'd probably lean towards not adding a third party collaborator to merge. At least not to core. This would make sense to our lower risk packages like our official starters (which we're exclusively setting up Renovate on to test waters with) but it's impossible to set granular user privileges for merge on a monorepo so this wouldn't work either.

rarkins commented 5 years ago

@sidharthachatterjee I understand your position. I hold the same opinion and that's why I haven't prioritised adding that capability yet, although ultimately it's whatever the end users want that drive things. I'll close this issue as I think we've reached the end of this topic, feel free to open more. Thanks for checking out Renovate for Gatsby!

sidharthachatterjee commented 5 years ago

We now have Renovate running on Gatsby for official starters! Thank you for all your help, @rarkins

rarkins commented 5 years ago

That’s awesome! You’re welcome