Skip to content

Commit 26adaf8

Browse files
mydeaclaude
andcommitted
fix(ci): Add git safe.directory to Playwright Docker image
The container runs as root but the GitHub Actions workspace is owned by a different user, causing "dubious ownership" errors when rollup (or other tools) shell out to git. Baking `safe.directory '*'` into the image fixes this for all container jobs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2c12e4d commit 26adaf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/docker/playwright.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble
55

66
# Install yarn (v1) for the monorepo
77
RUN npm install -g yarn@1.22.22
8+
9+
# Mark GitHub Actions workspace as safe for git.
10+
# The container runs as root but the workspace is owned by a different user,
11+
# causing "dubious ownership" errors in git operations (e.g. rollup build).
12+
RUN git config --global --add safe.directory '*'

0 commit comments

Comments
 (0)