Skip to content

Commit 7d398f6

Browse files
committed
Mark /github/workspace as safe directory (#12590)
* Mark /github/workspace as safe directory * Cleanup unexpected files
1 parent 347cd15 commit 7d398f6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/actions/post-release/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ echo ::set-output name=next_version::${next_version}
2929
echo "Configuring git"
3030
git config --global user.email "$GIT_USER_EMAIL"
3131
git config --global user.name "$GIT_USER_NAME"
32+
git config --global --add safe.directory /github/workspace
3233
git fetch
3334

3435
echo -n "Determining target branch: "

.github/actions/pre-release/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ fi
1616
echo "Configuring git"
1717
git config --global user.email "$GIT_USER_EMAIL"
1818
git config --global user.name "$GIT_USER_NAME"
19+
git config --global --add safe.directory /github/workspace
1920
git fetch
2021

2122
echo -n "Determining target branch: "

0 commit comments

Comments
 (0)