File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ set -o pipefail
1111# shellcheck source=../libexec/helper-scripts/log_run_die.sh
1212source /usr/libexec/helper-scripts/log_run_die.sh
1313
14+ log_level=info
15+
1416check_ref_commits_for_unicode () {
1517 local target_ref commit_list commit commit_diff unicode_report \
1618 unicode_show_exit_code found_malicious_unicode
@@ -61,14 +63,14 @@ check_ref_commits_for_unicode() {
6163 printf ' %s\n' " ${unicode_report:- ' No stdout or stderr from unicode-show!' } "
6264 found_malicious_unicode=' true'
6365 else
64- log notice " No potentially malicious unicode detected in commit '${commit} '."
66+ log info " No unicode detected in commit '${commit} '."
6567 fi
6668 done
6769
6870 if [ " ${found_malicious_unicode} " = ' true' ]; then
6971 die 1 ' Potentially malicious unicode detected!'
7072 fi
71- log notice ' No potentially malicious unicode detected.'
73+ log notice ' No unicode detected.'
7274}
7375
7476check_ref_commits_for_unicode " $@ "
You can’t perform that action at this time.
0 commit comments