Skip to content

Commit e3f8cf6

Browse files
geroplona-agent
andcommitted
Fix container permissions for GitHub-hosted runners
Add 'options: --user root' to all container configurations to resolve EACCES permission errors when GitHub Actions tries to write to internal directories. GitHub-hosted runners require containers to run as root to allow the Actions runtime to write to /__w/_temp/_runner_file_commands/ and other internal paths. Affected workflows: - build.yml (3 container jobs) - workspace-integration-tests.yml (2 container jobs) - ide-integration-tests.yml (2 container jobs) - preview-env-check-regressions.yml (1 container job) - preview-env-gc.yml (1 container job) - jetbrains-auto-update-template.yml (1 container job) - jetbrains-integration-test.yml (1 container job) - code-nightly.yml (1 container job) Co-authored-by: Ona <no-reply@ona.com>
1 parent 1ee3d6c commit e3f8cf6

8 files changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
runs-on: ubuntu-latest-16-cores
110110
container:
111111
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
112+
options: --user root
112113
steps:
113114
- uses: actions/checkout@v4
114115
- name: Setup Environment
@@ -179,6 +180,7 @@ jobs:
179180
- 6379:6379
180181
container:
181182
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
183+
options: --user root
182184
env:
183185
DB_HOST: "mysql"
184186
DB_PORT: "23306"
@@ -510,6 +512,7 @@ jobs:
510512
runs-on: ubuntu-latest
511513
container:
512514
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
515+
options: --user root
513516
if: needs.configuration.outputs.with_integration_tests != '' && needs.configuration.outputs.is_scheduled_run != 'true'
514517
concurrency:
515518
group: ${{ needs.configuration.outputs.preview_name }}-integration-test

.github/workflows/code-nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
container:
1414
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
15+
options: --user root
1516
steps:
1617
- uses: actions/checkout@v4
1718
- uses: ./.github/actions/setup-environment

.github/workflows/ide-integration-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
container:
3939
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
40+
options: --user root
4041
outputs:
4142
name: ${{ steps.configuration.outputs.name }}
4243
version: ${{ steps.configuration.outputs.version }}
@@ -125,6 +126,7 @@ jobs:
125126
runs-on: ubuntu-latest
126127
container:
127128
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
129+
options: --user root
128130
volumes:
129131
- /var/tmp:/var/tmp
130132
- /tmp:/tmp

.github/workflows/jetbrains-auto-update-template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
container:
1818
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
19+
options: --user root
1920
steps:
2021
- uses: actions/checkout@v2
2122
- name: Setup Environment

.github/workflows/jetbrains-integration-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
jetbrains-smoke-test-linux:
3636
container:
3737
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
38+
options: --user root
3839
runs-on: ubuntu-latest
3940
steps:
4041
- name: Generate Summary

.github/workflows/preview-env-check-regressions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
runs-on: ubuntu-latest
9494
container:
9595
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
96+
options: --user root
9697
volumes:
9798
- /var/tmp:/var/tmp
9899
- /tmp:/tmp

.github/workflows/preview-env-gc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
container:
1414
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
15+
options: --user root
1516
outputs:
1617
names: ${{ steps.set-matrix.outputs.names }}
1718
count: ${{ steps.set-matrix.outputs.count }}

.github/workflows/workspace-integration-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
runs-on: ubuntu-latest
5454
container:
5555
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
56+
options: --user root
5657
outputs:
5758
name: ${{ steps.configuration.outputs.name }}
5859
version: ${{ steps.configuration.outputs.version }}
@@ -158,6 +159,7 @@ jobs:
158159
runs-on: ubuntu-latest
159160
container:
160161
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:main-gha.33389
162+
options: --user root
161163
steps:
162164
- uses: actions/checkout@v4
163165
- name: Integration Test

0 commit comments

Comments
 (0)