Skip to content

Commit

Permalink
Remove dependency on GitHub runner layout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
me-and committed Apr 14, 2022
1 parent e4cc45f commit cc390be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -20,7 +20,7 @@ jobs:
packages: git
timeout-minutes: 10
- name: Configure safe.directory # Workaround for actions/checkout#760
run: git config --global --add safe.directory /cygdrive/d/a/Cygwin-Git/Cygwin-Git
run: git config --global --add safe.directory '*'
timeout-minutes: 1
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
sudo apt-get install lftp
timeout-minutes: 5
- name: Configure safe.directory # Workaround for actions/checkout#760
run: git config --global --add safe.directory /home/runner/work/Cygwin-Git/Cygwin-Git
run: git config --global --add safe.directory '*'
timeout-minutes: 1
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit cc390be

Please sign in to comment.