feat: support forwarding list of env vars to renovate container#1032
Open
justfalter wants to merge 1 commit into
Open
feat: support forwarding list of env vars to renovate container#1032justfalter wants to merge 1 commit into
justfalter wants to merge 1 commit into
Conversation
Introduce a new `additional-env-list` input that accepts a newline- separated list of environment variable names to pass through to the renovate container, in addition to those matched by `env-regex`. This offers a simpler alternative to overriding `env-regex`: callers only need to name the variables they want forwarded, without taking ownership of the full regex (and inheriting the risk of drifting from future updates to the default pattern). Names listed but not present in the environment emit a `core.warning` so typos are surfaced.
c5b285e to
aafb3b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a new
additional-env-listinput that accepts a newline- separated list of environment variable names to pass through to the renovate container, in addition to those matched byenv-regex.This offers a simpler alternative to overriding
env-regex: callers only need to name the variables they want forwarded, without taking ownership of the full regex (and inheriting the risk of drifting from future updates to the default pattern). Names listed but not present in the environment emit acore.warningso typos are surfaced.Demo using
additional-env-listMY_ENV_VAR,ANOTHER_ENV_VAR, andIGNORED_ENV_VARenvironment variablesadditional-env-listto pass inMY_ENV_VAR,ANOTHER_ENV_VAR, andENV_VAR_THAT_DOES_NOT_EXIST.MY_ENV_VAR,ANOTHER_ENV_VAR,IGNORED_ENV_VAR, andENV_VAR_THAT_DOES_NOT_EXIST.MY_ENV_VARandANOTHER_ENV_VARare effectively passed into the docker container.ENV_VAR_THAT_DOES_NOT_EXISTcould not be found.