Skip to content

Commit cc390be

Browse files
committed
Remove dependency on GitHub runner layout
GitHub runners are single-user and disposable, so it's safe to assume -- regardless of the recorded owner of any filesystem object -- that any Git directories are safe. That means there's no need for the safe directory check, so opt out of it, removing the reliance on the specific filesystem layout of the GitHub runners.
1 parent e4cc45f commit cc390be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
packages: git
2121
timeout-minutes: 10
2222
- name: Configure safe.directory # Workaround for actions/checkout#760
23-
run: git config --global --add safe.directory /cygdrive/d/a/Cygwin-Git/Cygwin-Git
23+
run: git config --global --add safe.directory '*'
2424
timeout-minutes: 1
2525
- name: Checkout
2626
uses: actions/checkout@v2
@@ -106,7 +106,7 @@ jobs:
106106
sudo apt-get install lftp
107107
timeout-minutes: 5
108108
- name: Configure safe.directory # Workaround for actions/checkout#760
109-
run: git config --global --add safe.directory /home/runner/work/Cygwin-Git/Cygwin-Git
109+
run: git config --global --add safe.directory '*'
110110
timeout-minutes: 1
111111
- name: Checkout
112112
uses: actions/checkout@v2

0 commit comments

Comments
 (0)