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
This commit is contained in:
Marco Ferrari 2024-04-19 15:18:04 +02:00 committed by GitHub
parent 8f405c1a9c
commit bd56ae5608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 #