Skip to content

feat: support forwarding list of env vars to renovate container#1032

Open
justfalter wants to merge 1 commit into
renovatebot:mainfrom
justfalter:easier-extra-env-vars
Open

feat: support forwarding list of env vars to renovate container#1032
justfalter wants to merge 1 commit into
renovatebot:mainfrom
justfalter:easier-extra-env-vars

Conversation

@justfalter
Copy link
Copy Markdown
Contributor

@justfalter justfalter commented May 12, 2026

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.


Demo using additional-env-list

  • gha workflow
    • sets MY_ENV_VAR, ANOTHER_ENV_VAR, and IGNORED_ENV_VAR environment variables
    • configures additional-env-list to pass in MY_ENV_VAR, ANOTHER_ENV_VAR, and ENV_VAR_THAT_DOES_NOT_EXIST.
  • self-hosted renovate config
    • Attempts to echo MY_ENV_VAR, ANOTHER_ENV_VAR, IGNORED_ENV_VAR, and ENV_VAR_THAT_DOES_NOT_EXIST.
  • Workflow run
    • Shows that only MY_ENV_VAR and ANOTHER_ENV_VAR are effectively passed into the docker container.
    • Logs a warning that ENV_VAR_THAT_DOES_NOT_EXIST could not be found.

@github-actions github-actions Bot requested a review from viceice May 12, 2026 14:17
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.
@justfalter justfalter force-pushed the easier-extra-env-vars branch from c5b285e to aafb3b1 Compare May 12, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant