Skip to content

Commit b76c1b0

Browse files
Fixes #116: detected dubious ownership issue for github workspace.
1 parent 15d7f90 commit b76c1b0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

deploy.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ if [[ "$BUILD_DIR" = false ]]; then
7979
TMP_DIR="${HOME}/archivetmp"
8080
mkdir "$TMP_DIR"
8181

82+
# Workaround for: detected dubious ownership in repository at '/github/workspace' issue.
83+
# see: https://github.com/10up/action-wordpress-plugin-deploy/issues/116
84+
# Mark github workspace as safe directory.
85+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
86+
8287
git config --global user.email "10upbot+github@10up.com"
8388
git config --global user.name "10upbot on GitHub"
8489

0 commit comments

Comments
 (0)