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() { Header() {
if [[ "${SUPPRESS_POSSUM}" == "false" ]]; then if [[ "${SUPPRESS_POSSUM}" == "false" ]]; then
/bin/bash /action/lib/functions/possum.sh info "$(/bin/bash /action/lib/functions/possum.sh)"
fi fi
info "---------------------------------------------" info "---------------------------------------------"
@ -722,9 +722,8 @@ Header
################################################ ################################################
UpdateLoopsForImage UpdateLoopsForImage
if ! cat "${VERSION_FILE}"; then # Print linter versions
fatal "Failed to view version file: ${VERSION_FILE}" info "$(cat "${VERSION_FILE}")"
fi
####################### #######################
# Get GitHub Env Vars # # Get GitHub Env Vars #