Skip to content

Commit e605aac

Browse files
committed
fix safe directory issue
fix fatal error for safe directory issue. (#16) Signed-off-by: Inho Oh <webispy@gmail.com>
1 parent 0159787 commit e605aac

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

entrypoint.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ echo "REF: $GITHUB_REF"
1313
echo "HEAD-REF: $GITHUB_HEAD_REF"
1414
echo "BASE-REF: $GITHUB_BASE_REF"
1515
pwd
16+
ls -l `pwd`
17+
id
18+
19+
# Add safe directory option for github workspace to disable fatal error
20+
# - docker container uid is 0(root)
21+
# - github workspace directory owner is 1001
22+
git config --global --add safe.directory /github/workspace
1623

1724
RESULT=0
1825

@@ -54,4 +61,4 @@ done
5461

5562
echo -e "\e[1;34mDone\e[0m"
5663

57-
exit $RESULT
64+
exit $RESULT

0 commit comments

Comments
 (0)