diff --git a/entrypoint.sh b/entrypoint.sh index 4bdb6d3..091ad7d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -61,6 +61,9 @@ rmdir "$PROJECT_ROOT" ln -s "$GITHUB_WORKSPACE" "$PROJECT_ROOT" cd "$PROJECT_ROOT" +# Avoid 'dubious ownership' errors from some `git` subcommands: +git config --global safe.directory "$GITHUB_WORKSPACE" + # Run pre-build script if [ -f "$PRE_BUILD" ]; then "./$PRE_BUILD"