From 4971157ab878c7880b632f123c90e56c77d7f2cd Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 11 Feb 2022 01:17:53 +0900 Subject: [PATCH] Disable switching to build-agent user on launch This commit disables automatically switching to the `build-agent`, a non-root user, context on launch because doing so can corrupt the permissions of the files created inside the GitHub Actions runner. This should be kept disabled until a fundamental solution to this problem is provided by the GitHub, or a usable workaround is found. Signed-off-by: Stephanos Ioannidis --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7bc1f5c..8e6f5c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,4 +57,6 @@ RUN groupadd -g $GID -o build-agent && \ echo 'build-agent ALL = NOPASSWD: ALL' > /etc/sudoers.d/build-agent && \ chmod 0440 /etc/sudoers.d/build-agent -USER build-agent +# NOTE: Do not switch to a non-root user because this creates all sorts of +# permission-related problems with the GitHub Actions runner. +# USER build-agent