Skip to content

Commit 7daf56f

Browse files
mydeaclaude
andcommitted
fix(ci): Set HOME=/root for containers to fix Firefox launch
Firefox refuses to run as root when HOME points to a directory owned by a different user. GHA sets HOME=/github/home (owned by runner) but we run as --user root. Setting HOME=/root fixes the ownership mismatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4a79425 commit 7daf56f

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ jobs:
505505
username: ${{ github.actor }}
506506
password: ${{ secrets.GITHUB_TOKEN }}
507507
options: --ipc=host --user root
508+
env:
509+
HOME: /root
508510
timeout-minutes: 25
509511
strategy:
510512
fail-fast: false
@@ -609,6 +611,8 @@ jobs:
609611
username: ${{ github.actor }}
610612
password: ${{ secrets.GITHUB_TOKEN }}
611613
options: --ipc=host --user root
614+
env:
615+
HOME: /root
612616
timeout-minutes: 15
613617
strategy:
614618
fail-fast: false
@@ -829,6 +833,8 @@ jobs:
829833
username: ${{ github.actor }}
830834
password: ${{ secrets.GITHUB_TOKEN }}
831835
options: --ipc=host --user root
836+
env:
837+
HOME: /root
832838
timeout-minutes: 15
833839
strategy:
834840
fail-fast: false
@@ -933,6 +939,8 @@ jobs:
933939
username: ${{ github.actor }}
934940
password: ${{ secrets.GITHUB_TOKEN }}
935941
options: --ipc=host --user root
942+
env:
943+
HOME: /root
936944
timeout-minutes: 15
937945
env:
938946
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -1058,6 +1066,8 @@ jobs:
10581066
username: ${{ github.actor }}
10591067
password: ${{ secrets.GITHUB_TOKEN }}
10601068
options: --ipc=host --user root
1069+
env:
1070+
HOME: /root
10611071
timeout-minutes: 15
10621072
env:
10631073
E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }}

.github/workflows/canary.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
username: ${{ github.actor }}
7979
password: ${{ secrets.GITHUB_TOKEN }}
8080
options: --ipc=host --user root
81+
env:
82+
HOME: /root
8183
timeout-minutes: 20
8284
env:
8385
# We just use a dummy DSN here, only send to the tunnel anyhow

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
username: ${{ github.actor }}
4747
password: ${{ secrets.GITHUB_TOKEN }}
4848
options: --ipc=host --user root
49+
env:
50+
HOME: /root
4951
timeout-minutes: 60
5052
name: 'Check tests for flakiness'
5153
# Also skip if PR is from master -> develop

0 commit comments

Comments
 (0)