Skip to content

Commit bde7563

Browse files
committed
ci: Disable Git directory ownership check
Since Git 2.35.1, the `safe.directory` config can be set to a wildcard, which has the effect of disabling the ownership check. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent d88c931 commit bde7563

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,7 @@ jobs:
822822
# match the container user UID because of the way GitHub
823823
# Actions runner is implemented. Remove this workaround when
824824
# GitHub comes up with a fundamental fix for this problem.
825-
git config --global --add safe.directory ${GITHUB_WORKSPACE}
826-
git config --global --add safe.directory ${RUNNER_TEMP}
825+
git config --global --add safe.directory '*'
827826
828827
- name: Set up build environment (Linux)
829828
if: ${{ runner.os == 'Linux' }}

0 commit comments

Comments
 (0)