Skip to content

Commit 8067fbf

Browse files
committed
Ensure write access
1 parent eda940b commit 8067fbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test-installers.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ jobs:
9191
# Add a non-admin sudoer user and switch to it
9292
adduser compass
9393
echo "compass ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
94+
# Make sure the compass user has write access to the workspace
95+
chown -R compass:compass $HOME
9496
# Use a shell which switch to the non-root compass user first
9597
# Using --preserve-env and --preserve-env=PATH to propagate environment variables
96-
shell: sudo --preserve-env=PATH --preserve-env -u compass bash -e {0}
98+
shell: sudo --preserve-env=HOME --preserve-env=PATH --preserve-env -u compass bash -e {0}
9799
container:
98100
image: rockylinux:9
99101
volumes:

0 commit comments

Comments
 (0)