validating nested configs in private repository #32000
Replies: 2 comments 9 replies
-
I guess it's because the validator doesn't have access to hostRules from your global config? One idea I've had is to add the concept of The remaining problem is that this will require the config to be on the default branch, meaning you have to commit it to test it that way, which is not so good. Maybe instead we could have a different approach like This assumes that you are OK with validating against a branch in a repo instead of locally. Do you have a hard requirement that you need to test against a local file? |
Beta Was this translation helpful? Give feedback.
-
Circling back to this, I'm wondering which paths might be available to consider moving forward with, if any. Since it seems like the limitation for my goal is the ability to set a token, it seems like the shortest path might be to expose a way to provide that as an environment variable to cli argument for the validator. You all could say that is a path that has other concerns beyond what I understand and that the partial Renovate run is the better path. To share one other scenario that is on my mind in case it sparks additional thoughts for this case: we are looking to identify which shared configs are used by various internal repositories so that we can compare to other metrics to get a better sense for whether the configs are encouraging successful behaviors. The ability to extend configuration in a nested fashion makes tracing usage starting from the Do you think there is a path toward enabling validation in a way that enables internal/private repo access? |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub Enterprise Cloud, Renovate 37.413.2
Please tell us more about your question or problem
I'm building some shareable configs for reuse across teams and am wanting to use the config validator to make sure we avoid simple issues. I've used the validator successfully in public repos, but am running into problems when attempting to use in private repos.
All is fine until attempting to validate a config that extends another config, even if that extended config is in the same repo. In this situation, the validator returns the error shown in the logs section below. Especially since I don't have this problem with my public configs (even when they extend others), I imagine the problem is that the validator is unable to fetch the extended config from the private repository. So, I'm curious if there is a way to provide a token to enable it to fetch, or if there are other steps to accomplish this goal.
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions