]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
💚 Fix/workaround GitHub Actions in Docker with git for FastAPI People (#9169)
authorSebastián Ramírez <tiangolo@gmail.com>
Thu, 2 Mar 2023 13:06:57 +0000 (14:06 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2023 13:06:57 +0000 (13:06 +0000)
.github/workflows/people.yml

index 4b47b4072f6b80276b6ea337c6c5d2abfbe31e77..cca1329e71c27e34dd838e0d44fce1c187bd00ed 100644 (file)
@@ -15,6 +15,9 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
+      # Ref: https://github.com/actions/runner/issues/2033
+      - name: Fix git safe.directory in container
+        run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3