-
Notifications
You must be signed in to change notification settings - Fork 473
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 auto-merge from PRs made on a pre-authorized fork of General (@JuliaRegistrator/General
or @jlbuild/General
#105216
Comments
There are going to be some challenges. I'll write up a few details. |
@DilumAluthge bump |
Short answer: No, we cannot auto-merge PRs from a recognized/authorized fork of the General registry. To increase security of the General registry with regards to the JuliaRegistrator bot, I have blocked the JuliaRegistrator bot from merging or pushing to the Long answer: The question in this issue is specifically about the JuliaRegistrator app. The issue is specifically asking two questions:
This issue does not concern PRs made from other forks to the General registry; the issue is specifically about JuliaRegistrator pushing to an authorized fork (JuliaRegistrator/General). The answer to the first question is that there is no easy way to securely auto-merge PRs that are made from a fork of the General registry. GitHub has a variety of security mechanisms in place, and these mechanisms essentially prevent us from using AutoMerge (at least, with the current architecture of AutoMerge) to auto-merge PRs from a fork of the General registry. Is it possible to bypass these security mechanisms? Yes, but:
A lot of this has to do with the fact that AutoMerge is a GitHub Action, not a GitHub App. If AutoMerge were completely rearchitected and rewritten as a GitHub App, then the situation becomes very different, and some things that were previously not possible now become possible. However:
The second question is a more general question about security on the General registry with respect to the JuliaRegistrator app. In response to this, I'll point out that we can restrict which users and apps can merge to the |
Here's an alternate way to frame the same information that I wrote above. Consider this sentence from the OP:
With the current architecture of AutoMerge as a GitHub Action, this sentence is false. For AutoMerge (in its current GitHub Actions architecture) to function, the registrator bots ( We can restrict the permissions of the bots, by blocking the But we cannot remove commit/push access from |
@JuliaRegistrator/General
or @jlbuild/General
@JuliaRegistrator/General
or @jlbuild/General
@JuliaRegistrator/General
or @jlbuild/General
Registrator now lets you specify a fork of the registry to make the PRs against. Its better to use a fork for security reasons since we can reduce the bot privilege on the main registry. Can we allow auto-merge on a recognized fork of General? @DilumAluthge
We need to create this fork repository so lets also discuss how that should be done.
The text was updated successfully, but these errors were encountered: