feat: pass all LOG_* environment variables to the Renovate container#1036
Open
ruzickap wants to merge 1 commit into
Open
feat: pass all LOG_* environment variables to the Renovate container#1036ruzickap wants to merge 1 commit into
ruzickap wants to merge 1 commit into
Conversation
Renovate supports several logging-related environment variables (LOG_FILE, LOG_FILE_FORMAT, LOG_FILE_LEVEL, LOG_FORMAT, LOG_LEVEL, LOG_CONTEXT) that are loaded before configuration parsing. Previously, only LOG_LEVEL was forwarded to the Docker container by the default env-regex pattern. This change broadens the pattern from LOG_LEVEL to LOG_\w+ so that all Renovate logging variables (such as LOG_FILE for enabling file logging) are passed through without requiring users to override env-regex.
viceice
requested changes
Jun 9, 2026
viceice
left a comment
Member
There was a problem hiding this comment.
you should use RENOVATE_LOG_ prefix for log variables
@jamietanna @secustor I think we discussed already to change the docs. maybe forgot to do that?
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.
Description
Renovate supports several logging-related environment variables that are loaded
before configuration parsing (docs):
LOG_CONTEXTLOG_FILELOG_FILE_FORMATLOG_FILE_LEVELLOG_FORMATLOG_LEVELCurrently the default
env-regexonly allowsLOG_LEVELthrough to theDocker container. Users who want to use
LOG_FILE(to enable file logging)must override the entire
env-regexinput just to add one variable.This PR changes the default pattern from
LOG_LEVELtoLOG_\w+so thatall Renovate logging variables are forwarded without requiring users to
customize
env-regex.Changes
src/input.ts— default regex:LOG_LEVEL→LOG_\w+action.yml— updated description of the default valueREADME.md— updated theenv-regexexampleMotivation
When using
LOG_FILEwithdocker-volumes: /tmp:/tmpto write Renovatelogs and upload them as artifacts, the log file is never created because
LOG_FILEis silently dropped by the action's env filtering.Example workflow that fails without this change:
The workaround today is to specify a custom
env-regexthat includesLOG_FILE, but this is non-obvious and error-prone since users expectlogging variables to work the same way
LOG_LEVELdoes.