fix(agent-images): own Git config directory
tracker-policy-pr / check-pr (pull_request) Successful in 10s
test / integration-docker (pull_request) Successful in 14s
test / unit (pull_request) Successful in 37s
lint / lint (push) Successful in 49s
test / integration-firecracker (pull_request) Failing after 6m31s
test / coverage (pull_request) Has been skipped
test / publish-infra (pull_request) Has been skipped

This commit is contained in:
2026-07-21 17:38:04 +00:00
parent 1aeeb55b54
commit 7e5ffd9674
5 changed files with 19 additions and 1 deletions
+5
View File
@@ -47,6 +47,11 @@ RUN apt-get update \
RUN npm install -g --no-fund --no-audit @anthropic-ai/claude-code@2.1.172 \
&& npm cache clean --force
# Git reads both ~/.gitconfig and ~/.config/git/config. Keep its XDG config
# path traversable by the non-root runtime user so permission errors do not
# suppress bot-bottle's git-gate insteadOf rules.
RUN install -d -o node -g node -m 755 /home/node/.config /home/node/.config/git
# Run as a non-root user. The node image already provides a `node` user
# (uid 1000) with a home directory, which is where claude-code will write
# its session state.