Skip to content

Commit 38c5e2e

Browse files
committed
try marking workspace as safe
1 parent cec56c9 commit 38c5e2e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build-updater.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
fetch-depth: 0
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020

21+
- name: Mark workspace as safe
22+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
23+
2124
- name: Set up Go
2225
uses: actions/setup-go@v4
2326
with:
@@ -53,6 +56,10 @@ jobs:
5356
fetch-depth: 0
5457
token: ${{ secrets.GITHUB_TOKEN }}
5558

59+
- name: Mark workspace as safe
60+
shell: pwsh
61+
run: git config --global --add safe.directory $Env:GITHUB_WORKSPACE
62+
5663
- name: Set up Go
5764
uses: actions/setup-go@v4
5865
with:
@@ -91,6 +98,9 @@ jobs:
9198
fetch-depth: 0
9299
token: ${{ secrets.GITHUB_TOKEN }}
93100

101+
- name: Mark workspace as safe
102+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
103+
94104
- name: Set up Go
95105
uses: actions/setup-go@v4
96106
with:

0 commit comments

Comments
 (0)