Skip to content

Commit 72c2bd7

Browse files
authored
fix: unset log level when getting renovate version (#7594)
Set the Renovate log level variable (LOG_LEVEL) to WARN to avoid that INFO level messages end up in the Renovate output when getting its version.
1 parent 6231a1c commit 72c2bd7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/linterVersions.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,13 @@ for LANGUAGE in "${!LINTER_NAMES_ARRAY[@]}"; do
209209
elif [[ "${LINTER}" == "R" ]]; then
210210
GET_VERSION_CMD="$("${LINTER}" --version | head -n 1 | awk '{ print $3 }')"
211211
elif [[ ${LINTER} == "renovate-config-validator" ]]; then
212-
GET_VERSION_CMD="$(renovate --version 2>/dev/null)"
212+
GET_VERSION_CMD="$(
213+
# Renovate uses LOG_LEVEL as the variable to set its log level,
214+
# potentially conflicting with the Super-linter LOG_LEVEL variable. Set
215+
# the Renovate log level to WARN so that we don't get INFO level messages
216+
# in the output when fetching the renovate version.
217+
LOG_LEVEL=WARN renovate --version 2>/dev/null
218+
)"
213219
elif [[ "${LINTER}" == "ruff" ]]; then
214220
GET_VERSION_CMD="$("${LINTER}" --version | awk '{ print $2 }')"
215221
elif [[ "${LINTER}" == "rustfmt" ]]; then

0 commit comments

Comments
 (0)