Skip to content

Commit

Permalink
Merge pull request #13 from usertesting/explicitly-allow-github-works…
Browse files Browse the repository at this point in the history
…pace-as-safe

add global git config entry for GITHUB_WORKSPACE as a safe.directory
  • Loading branch information
traversaro authored Apr 25, 2022
2 parents 4047e51 + bf00aca commit 9fdc529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ if [[ "$INPUT_ALLOW_FF" == "true" ]]; then
fi
fi

git config --global --add safe.directory "$GITHUB_WORKSPACE"
git remote set-url origin https://x-access-token:${!INPUT_PUSH_TOKEN}@github.com/$GITHUB_REPOSITORY.git
git config --global user.name "$INPUT_USER_NAME"
git config --global user.email "$INPUT_USER_EMAIL"
Expand Down

0 comments on commit 9fdc529

Please sign in to comment.