mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 15:31:53 +00:00
c11053adc3
As noted in #45848, the platform initializes itself over HTTP inside `globalInitialize()`, which happens before we set `endpoint` in `GlobalConfig`. This means that `isPlatformEndpoint()` would never be true during Platform initialisation, so a self-hosted platform on an internal address was judged as a host the administrator had not vouched for, and logged: WARN: HTTP request to an internal host, which `internalHostAccess=block` would refuse ... "hostType": "gitea" This also would apply to `internalHostAccess`'s setting, so even when using `internalHostAccess=allow`, a warning would appear. To handle this, we can make sure that we re-set the global values once we've performed `globalInitialize`, in case global initialisation has determined the `endpoint`, etc. Co-authored-by: Claude Opus 5 <jamie.tanna+claude-code@mend.io>