From 48c416e50b7ef7799a40a42761cd44d5c8f20d5f Mon Sep 17 00:00:00 2001 From: xEsiah Date: Mon, 19 Oct 2026 14:37:55 +0200 Subject: [PATCH] ci(deploy): allow git pull in deploy dir owned by another user --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd0e5d8..dc3b403 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,6 +28,9 @@ jobs: run: | set -eu dir="${DEPLOY_DIR:-/srv/apps/cohaise-cloud/CoHaiSe-CLOUD}" + # The deploy directory may be owned by another user than the runner: + # git refuses to operate there without an explicit safe.directory. + git config --global --add safe.directory "$dir" cd "$dir" git pull --ff-only origin main # Image builds compile and typecheck every workspace (tsc): no Node