Skip to content

Commit 2df746e

Browse files
committed
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.
1 parent f022005 commit 2df746e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN if [ "x${CPANOUTDATED}" = "x1" ] ; then cpan-outdated --exclude-core -p | xa
2424
WORKDIR /tmp/
2525
RUN git clone https://github.com/perl-actions/ci-perl-tester-helpers.git --depth 1 && \
2626
cp ci-perl-tester-helpers/bin/* /usr/local/bin/ && \
27-
rm -rf ci-perl-tester-helpers
27+
rm -rf ci-perl-tester-helpers && \
28+
git config --global --add safe.directory '*'
2829

2930
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)