Skip to content

Commit 04ad5fc

Browse files
committed
add safe directory
1 parent c9a06e9 commit 04ad5fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/node.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
run: >
2929
git config --global url."https://github.com/".insteadOf ssh://git@github.com/
3030
31+
- name: Mark workspace as safe for git
32+
run: |
33+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
34+
git config --global --add safe.directory "/__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}"
35+
3136
- name: Use Node.js ${{ matrix.node-version }}
3237
uses: actions/setup-node@v4
3338
with:

0 commit comments

Comments
 (0)