From b6b620b54a46214e758eee84aea35cf65b07fe63 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Mon, 9 Jan 2023 14:22:16 -0500 Subject: [PATCH] Add a global git safe directory After this change: root@390257b4c39c:/tmp# git config --global --list safe.directory=* This fixes file ownership mismatches between Docker and the GitHub CI user which happen via the checkout action. We can likely revert this if it gets fixed upstream. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3a13cff..421e7d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ RUN if [ "x${CPANOUTDATED}" = "x1" ] ; then cpan-outdated --exclude-core -p | xa WORKDIR /tmp/ RUN git clone https://github.com/perl-actions/ci-perl-tester-helpers.git --depth 1 && \ cp ci-perl-tester-helpers/bin/* /usr/local/bin/ && \ - rm -rf ci-perl-tester-helpers + rm -rf ci-perl-tester-helpers && \ + git config --global --add safe.directory '*' CMD ["/bin/bash"]