Skip to content

Commit ac2a6b5

Browse files
committed
Add clarifing comments
Signed-off-by: Khosrow Moossavi <[email protected]>
1 parent fefba94 commit ac2a6b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ if [ -z "${INPUT_GIT_PUSH_USER_EMAIL}" ]; then
4949
fi
5050

5151
git_setup() {
52+
# When the runner maps the $GITHUB_WORKSPACE mount, it is owned by the runner
53+
# user while the created folders are owned by the container user, causing this
54+
# error. Issue description here: https://github.com/actions/checkout/issues/766
5255
git config --global --add safe.directory /github/workspace
56+
5357
git config --global user.name "${INPUT_GIT_PUSH_USER_NAME}"
5458
git config --global user.email "${INPUT_GIT_PUSH_USER_EMAIL}"
5559
git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true

0 commit comments

Comments
 (0)