diff --git a/entrypoint.sh b/entrypoint.sh index 214bb0d..33f9aad 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -223,7 +223,7 @@ if ((CHECKBASHISMS_ENABLE == 1)); then fi if ((shellcheck_code != 0 || shfmt_code != 0)); then - if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ((SH_CHECKER_COMMENT == 1)); then + if [[ "$GITHUB_EVENT_NAME" == "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]] && ((SH_CHECKER_COMMENT == 1)); then _comment_on_github "$shellcheck_error" "$shfmt_error" fi fi