Skip to content

Commit 91345ed

Browse files
authored
ci: fix unsafe directory bug (#2518)
This commit fixes a bug that was introduced due to a upstream change in the git package. See https://stackoverflow.com/questions/71849415/i-cannot-add-the-parent-directory-to-safe-directory-in-git/71904131#71904131 for more information.
1 parent 55a303b commit 91345ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/generate-theme-doc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
cache: npm
2525

26+
# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches.
27+
- name: Fix unsafe repo error
28+
run: git config --global --add safe.directory ${{ github.workspace }}
29+
2630
- name: npm install, generate readme
2731
run: |
2832
npm ci

0 commit comments

Comments
 (0)