From bd56ae560840642eb0b558c5febecc28d2e8401d Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 19 Apr 2024 15:18:04 +0200 Subject: [PATCH] fix: wrap version info and logo with logs (#5547) Use log functions to print linter versions and the super-linter logo so that they respect the configured log level. Close #5337 --- lib/linter.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index c58d270d..7d2f4c7d 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -315,7 +315,7 @@ done Header() { if [[ "${SUPPRESS_POSSUM}" == "false" ]]; then - /bin/bash /action/lib/functions/possum.sh + info "$(/bin/bash /action/lib/functions/possum.sh)" fi info "---------------------------------------------" @@ -722,9 +722,8 @@ Header ################################################ UpdateLoopsForImage -if ! cat "${VERSION_FILE}"; then - fatal "Failed to view version file: ${VERSION_FILE}" -fi +# Print linter versions +info "$(cat "${VERSION_FILE}")" ####################### # Get GitHub Env Vars #