From d7c80fbf28a2667f4f200463ae6048de7993f18c Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sun, 27 Apr 2025 17:45:14 +0200 Subject: [PATCH] GHA: Fix ownership of repo in container Avoid: > fatal: detected dubious ownership in repository at '/__w/turtle/turtle' by adding that path to the git `safe.path`. This is caused by the command(s) running inside the container but the folder being created outside the container so the owner inside the container is not what is expected by git. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc62ba3..9c8331f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,7 @@ jobs: apt-get -o Acquire::Retries=$NET_RETRY_COUNT update apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y g++ git cmake git config --global pack.threads 0 + git config --global --add safe.directory "$GITHUB_WORKSPACE" # Avoid ownership issues of repo in container - uses: actions/checkout@v4 with: