Skip to content

Commit bd56ae5

Browse files
authored
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
1 parent 8f405c1 commit bd56ae5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/linter.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ done
315315

316316
Header() {
317317
if [[ "${SUPPRESS_POSSUM}" == "false" ]]; then
318-
/bin/bash /action/lib/functions/possum.sh
318+
info "$(/bin/bash /action/lib/functions/possum.sh)"
319319
fi
320320

321321
info "---------------------------------------------"
@@ -722,9 +722,8 @@ Header
722722
################################################
723723
UpdateLoopsForImage
724724

725-
if ! cat "${VERSION_FILE}"; then
726-
fatal "Failed to view version file: ${VERSION_FILE}"
727-
fi
725+
# Print linter versions
726+
info "$(cat "${VERSION_FILE}")"
728727

729728
#######################
730729
# Get GitHub Env Vars #

0 commit comments

Comments
 (0)