Skip to content

Commit 7480fff

Browse files
mydeaclaude
andcommitted
fix(ci): Run Playwright containers as root for Docker socket access
E2E tests need Docker-in-Docker (Verdaccio registry). The actions-runner base image runs as non-root 'runner' user which cannot access the Docker socket mounted from the host. Run as root to fix permissions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e3344bd commit 7480fff

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ jobs:
501501
credentials:
502502
username: ${{ github.actor }}
503503
password: ${{ secrets.GITHUB_TOKEN }}
504-
options: --ipc=host
504+
options: --ipc=host --user root
505505
timeout-minutes: 25
506506
strategy:
507507
fail-fast: false
@@ -605,7 +605,7 @@ jobs:
605605
credentials:
606606
username: ${{ github.actor }}
607607
password: ${{ secrets.GITHUB_TOKEN }}
608-
options: --ipc=host
608+
options: --ipc=host --user root
609609
timeout-minutes: 15
610610
strategy:
611611
fail-fast: false
@@ -799,7 +799,7 @@ jobs:
799799
credentials:
800800
username: ${{ github.actor }}
801801
password: ${{ secrets.GITHUB_TOKEN }}
802-
options: --ipc=host
802+
options: --ipc=host --user root
803803
timeout-minutes: 15
804804
strategy:
805805
fail-fast: false
@@ -903,7 +903,7 @@ jobs:
903903
credentials:
904904
username: ${{ github.actor }}
905905
password: ${{ secrets.GITHUB_TOKEN }}
906-
options: --ipc=host
906+
options: --ipc=host --user root
907907
timeout-minutes: 15
908908
env:
909909
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -1035,7 +1035,7 @@ jobs:
10351035
credentials:
10361036
username: ${{ github.actor }}
10371037
password: ${{ secrets.GITHUB_TOKEN }}
1038-
options: --ipc=host
1038+
options: --ipc=host --user root
10391039
timeout-minutes: 15
10401040
env:
10411041
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}

.github/workflows/canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
credentials:
7878
username: ${{ github.actor }}
7979
password: ${{ secrets.GITHUB_TOKEN }}
80-
options: --ipc=host
80+
options: --ipc=host --user root
8181
timeout-minutes: 20
8282
env:
8383
# We just use a dummy DSN here, only send to the tunnel anyhow

.github/workflows/flaky-test-detector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
credentials:
4646
username: ${{ github.actor }}
4747
password: ${{ secrets.GITHUB_TOKEN }}
48-
options: --ipc=host
48+
options: --ipc=host --user root
4949
timeout-minutes: 60
5050
name: 'Check tests for flakiness'
5151
# Also skip if PR is from master -> develop

0 commit comments

Comments
 (0)