-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow mage-os-ci user to push to remote bypassing branch protections #85
Comments
I wondered that you talk about Your suggestions sound good to me. I'd personally say we can go with the slightly "less secure" option 2. However, I don't feel comfortable deciding this alone. Hence, I'm dragging in the @mage-os/infrastructure team, @Vinai @damienwebdev @DavidLambauer. |
@Vinai, @damienwebdev, @DavidLambauer, could someone share their opinion on this one? |
I don't have enough familiarity with this to comment. |
If you wouldn't mind a random flyby, I would strongly recommend that option 2 not be taken lightly. It would be better to be as explicit as possible. Id suggest either by allowing for a new item within your objects or a user to repo map that is considered during branch rule/branch protection setup. This way you dont have issues aligning global changes, and your user doesnt get additional privelages in much more repos than necessary. |
We can loosen the permissions, as it would also benefit me in the DevDocs repository. Permissions should be managed at the user level. |
I think keeping the setup more secure by default is the way to go. |
Add mono repo push allowances, fixes #85
Currently all repositories defined in
variable "repositories"
have branch protections turned on so all changes are submitted via pull requests. This makes sense in a regular repository but not so much in a mono-repository setup.The
mageos-async-events-sinks
is a mono repository which runs an action to split the packages and push to remote as themage-os-ci
user, thus running into the problem of not being allowed to push because of said branch restrictions.Some possible solutions that I can think of are
variable "mono-repositories"
which copy the same branch protection configuration AND addpush_allowances
to themage-os-ci
user.push_allowances
to themage-os-ci
user on the existing branch protection rule meaningmage-os-ci
could in theory bypass branch restrictions on all repositories defined by the variable.The text was updated successfully, but these errors were encountered: