diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index 422995e6..46ea0b6b 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -8,6 +8,7 @@ function IssueHintForFullGitHistory() { info "See https://github.com/super-linter/super-linter#get-started" info "Is shallow repository: $(git -C "${GITHUB_WORKSPACE}" rev-parse --is-shallow-repository)" } +export -f IssueHintForFullGitHistory function GenerateFileDiff() { local DIFF_GIT_DEFAULT_BRANCH_CMD diff --git a/lib/functions/validation.sh b/lib/functions/validation.sh index 168b48b1..880d891e 100755 --- a/lib/functions/validation.sh +++ b/lib/functions/validation.sh @@ -200,6 +200,7 @@ function ValidateGitShaReference() { debug "Validate that the GITHUB_SHA reference (${GITHUB_SHA}) exists in this Git repository." if ! CheckIfGitRefExists "${GITHUB_SHA}"; then + IssueHintForFullGitHistory fatal "The GITHUB_SHA reference (${GITHUB_SHA}) doesn't exist in this Git repository" else debug "The GITHUB_SHA reference (${GITHUB_SHA}) exists in this repository"