From 45d40e01d66f4786f10cdb848d9e0cf911e3630e Mon Sep 17 00:00:00 2001 From: Dave Furmidge <99021099+davefurmidge@users.noreply.github.com> Date: Fri, 15 Apr 2022 08:14:53 +0100 Subject: [PATCH] fix: copy actionlint fix Updated to be the same as https://github.com/reviewdog/action-actionlint/pull/66 fix --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8b34086..cc660f6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,8 +3,9 @@ set -e if [ -n "${GITHUB_WORKSPACE}" ] ; then cd "${GITHUB_WORKSPACE}" || exit + git config --global --add safe.directory $GITHUB_WORKSPACE || exit 1 fi -git config --global --add safe.directory $GITHUB_WORKSPACE || exit 1 + export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" redpen --version