Skip to content

Commit 4315b04

Browse files
cuihtlauacclaude
andcommitted
Fix Podman CI test: workspace permissions for UID mapping
Rootful Podman maps UIDs 1:1 without Docker's automatic updateRemoteUserUID behavior, so the container's vscode user (UID 1000) cannot write to the workspace owned by runner (UID 1001). Open workspace permissions before starting the container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e0e9cb9 commit 4315b04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ jobs:
220220
- name: Install devcontainer CLI
221221
run: npm install -g @devcontainers/cli
222222

223+
- name: Fix workspace permissions for Podman
224+
run: |
225+
# Rootful Podman maps UIDs 1:1; the container's vscode user (UID 1000)
226+
# needs write access to the workspace owned by runner (UID 1001).
227+
# Docker's updateRemoteUserUID handles this automatically but Podman
228+
# does not, so we open permissions on the workspace.
229+
chmod -R a+rwX .
230+
223231
- name: Start devcontainer with Podman
224232
run: devcontainer up --workspace-folder .
225233

0 commit comments

Comments
 (0)