Skip to content

Commit

Permalink
fix: wrap version info and logo with logs (#5547)
Browse files Browse the repository at this point in the history
Use log functions to print linter versions and the super-linter logo so
that they respect the configured log level.

Close #5337
  • Loading branch information
ferrarimarco committed Apr 19, 2024
1 parent 8f405c1 commit bd56ae5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "---------------------------------------------"
Expand Down Expand Up @@ -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 #
Expand Down

0 comments on commit bd56ae5

Please sign in to comment.