From 254b99738a4dab95a362f5fdd1fe6574545c2002 Mon Sep 17 00:00:00 2001 From: Jared Bates Date: Mon, 2 May 2022 14:08:24 -0500 Subject: [PATCH 1/3] Fix git safe directory issue --- entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint.sh b/entrypoint.sh index 5a2e705..df0557a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -63,6 +63,7 @@ function installPipRequirements(){ function runCdk(){ echo "Run cdk ${INPUT_CDK_SUBCOMMAND} ${*} \"${INPUT_CDK_STACK}\"" set -o pipefail + git config --global --add safe.directory "$GITHUB_WORKSPACE" cdk ${INPUT_CDK_SUBCOMMAND} ${*} "${INPUT_CDK_STACK}" 2>&1 | tee output.log exitCode=${?} set +o pipefail From 01790bfd8a0397fb88e8d08f42ee6c040b7b15b4 Mon Sep 17 00:00:00 2001 From: Jared Bates Date: Mon, 2 May 2022 14:18:55 -0500 Subject: [PATCH 2/3] Move fix --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index df0557a..17f38b1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -63,7 +63,6 @@ function installPipRequirements(){ function runCdk(){ echo "Run cdk ${INPUT_CDK_SUBCOMMAND} ${*} \"${INPUT_CDK_STACK}\"" set -o pipefail - git config --global --add safe.directory "$GITHUB_WORKSPACE" cdk ${INPUT_CDK_SUBCOMMAND} ${*} "${INPUT_CDK_STACK}" 2>&1 | tee output.log exitCode=${?} set +o pipefail @@ -100,6 +99,10 @@ ${output} function main(){ parseInputs cd ${GITHUB_WORKSPACE}/${INPUT_WORKING_DIR} + + # Fix for https://github.com/actions/checkout/issues/766 + git config --global --add safe.directory "$GITHUB_WORKSPACE" + installTypescript installAwsCdk installPipRequirements From cfadb4843373e20d1c23d5f702e62a7a1b736b5a Mon Sep 17 00:00:00 2001 From: Jared Bates Date: Fri, 11 Jul 2025 07:12:13 -0500 Subject: [PATCH 3/3] Update to node 22 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b031a99..48310ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.17 +FROM node:22-alpine RUN apk --update --no-cache add nodejs npm python3 py3-pip jq curl bash git docker && \ ln -sf /usr/bin/python3 /usr/bin/python