Overriding a preset that contains inaccessible encrypted, secrets #26987
-
How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us what version of Renovate you run.No response If you're self-hosting Renovate, select which platform you are using.None What is your question?I have stumbled upon an issue that I'd like some guidance on. There's a shared preset in GitHub organization X that contains a secret scoped to that organization used for authenticating to a package registry. I want to use that preset in a repository in GitHub organization Y. I thought I would be able to do this by creating a new preset in GitHub organization Y that contains a secret scoped to that organization, and use a {
"extends": [
"github>x:renovate-config:default",
"github>y:renovate-config:override-secret"
]
} The idea would be that presets will be merged, and that the secrets in the latter preset override the ones in the first preset. This, however, does not seem to work as it seems like preset validation is performed before the presets are merged into the final configuration. My questions are:
Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Secrets can be encrypted with multiple orgs (comma separated). If the preset is intended to be used in multiple orgs, then re-encrypt the secrets that way. If the preset is not intended to be used in multiple orgs.. stop doing it |
Beta Was this translation helpful? Give feedback.
My memory (but without code review to confirm) is that presets are resolved immediately. What you're after is some type of "lazy" resolution and merging, which is not possible. If you can find an elegant way to do so in a PR you are welcome to propose one