From b9a7b9388479cdf5c39c86865fb0975ec50518bb Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Mon, 20 Nov 2023 01:03:25 -0800 Subject: [PATCH] Allow anyone to write to stdout/stderr --- dist/platforms/ubuntu/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/platforms/ubuntu/entrypoint.sh b/dist/platforms/ubuntu/entrypoint.sh index 2af5c49a..fa74d482 100755 --- a/dist/platforms/ubuntu/entrypoint.sh +++ b/dist/platforms/ubuntu/entrypoint.sh @@ -9,10 +9,12 @@ GROUPID=$(stat -c '%g' "$GITHUB_WORKSPACE/$PROJECT_PATH") groupadd -g $GROUPID $GROUPNAME useradd -u $USERID -g $GROUPID $USERNAME usermod -aG $GROUPNAME $USERNAME -usermod -aG tty $USERNAME mkdir -p "/home/$USERNAME" chown $USERNAME:$GROUPNAME "/home/$USERNAME" +chmod 777 /dev/stdout +chmod 777 /dev/stderr + # Switch to the host user so we can create files with the correct ownership su $USERNAME -c "$SHELL -c 'source /steps/runsteps.sh'"