mend / renovate-ce-ee

Mend Renovate Documentation & Examples
https://www.mend.io/renovate/
Other
160 stars 56 forks source link

Runs on forks when not requested #510

Closed TobiX closed 2 months ago

TobiX commented 3 months ago

It seems Renovate CE started running on forks some time ago. In the logs I can see

Enabling forkProcessing while in non-autodiscover mode

This sounds wrong to me...

rarkins commented 3 months ago

In GitHub, it should function like this:

For GitLab, where users "invite" the bot into repositories, I would think that forkProcessing=enabled would be expected by most users.

TobiX commented 3 months ago

Hmmm. In our internal GitLab environment teams usually invite the Renovate Bot into a group, not into individual projects. So it might happen that one forks a project from one group into another... But yeah, I see how both ways could be considered "correct". If I set forkProcessing: "disabled" as a global option, can users still override the setting in their repository? That might be a viable "workaround" for our internal GitLab...

rarkins commented 3 months ago

It might work to override it right now if you set it in env

nabeelsaabna commented 3 months ago

To minimize the configuration the servers "manages", should we create a new flag like MEND_RENOVATE_FORKS_PROCESSING for enabling the behavior of:

?

rarkins commented 3 months ago

Yes, we should allow users to manually control/override

nabeelsaabna commented 3 months ago

MEND_RENOVATE_FORKS_PROCESSING with valid values: disabled | enabled | managed | <empty> :

disabled

enabled

managed

unset

rarkins commented 3 months ago

I'm not sure it needs to be so complicated. What would you lose if you just let the user override RENOVATE_FORK_PROCESSING? i.e. if it's unset then you manage it, otherwise use what they ask for

nabeelsaabna commented 3 months ago

it's for the ease of use, allowing all options in one place instead of jumping from server to worker configurations. managed for GitHub is the only option that needs a bit of work for making sure we have "all repositories" or "selected repositories" in relevant functions...

nabeelsaabna commented 2 months ago

released in 7.4.0