Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Adding /__w directory to tools image
Browse files Browse the repository at this point in the history
This (in theory) will allow running GHA in container, without root

see actions/checkout#1014
  • Loading branch information
mutantcornholio committed Aug 16, 2024
1 parent 38dc90f commit cdb094c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockerfiles/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ RUN set -x \
&& useradd -u 1000 -g 1000 -s /bin/bash -m nonroot \
&& git config --global --add safe.directory '*' \
&& cp /root/.gitconfig /home/nonroot/.gitconfig \
&& chown nonroot:nonroot /home/nonroot/.gitconfig
&& chown nonroot:nonroot /home/nonroot/.gitconfig \
&& mkdir /__w && chown nonroot:nonroot /__w

USER nonroot:nonroot
CMD ["/bin/bash"]

0 comments on commit cdb094c

Please sign in to comment.