From a526869f212283c906c4e650a66699e0664b3390 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 28 Dec 2025 20:34:43 +0100 Subject: [PATCH] fix: configure git to use gh as credential helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add system-level git config to use `gh auth git-credential` for HTTPS authentication. This allows git push/pull to work automatically using the GH_TOKEN environment variable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26cf0d6c..a5f7a806 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,9 +92,11 @@ COPY --from=server-builder /app/node_modules ./node_modules # Create data and projects directories RUN mkdir -p /data /projects && chown automaker:automaker /data /projects -# Configure git for mounted volumes (ownership mismatch between host/container) +# Configure git for mounted volumes and authentication # Use --system so it's not overwritten by mounted user .gitconfig -RUN git config --system --add safe.directory '*' +RUN git config --system --add safe.directory '*' && \ + # Use gh as credential helper (works with GH_TOKEN env var) + git config --system credential.helper '!gh auth git-credential' # Switch to non-root user USER automaker