Skip to content

Commit 032dcad

Browse files
authored
Mark /github/workspace as safe directory (#12590)
* Mark /github/workspace as safe directory * Cleanup unexpected files
1 parent 01f9dac commit 032dcad

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
@@ -33,6 +33,7 @@ echo ::set-output name=next_version::${next_version}
3333
echo "Configuring git"
3434
git config --global user.email "$GIT_USER_EMAIL"
3535
git config --global user.name "$GIT_USER_NAME"
36+
git config --global --add safe.directory /github/workspace
3637
git fetch
3738

3839
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)