Skip to content

Commit

Permalink
Disable switching to build-agent user on launch
Browse files Browse the repository at this point in the history
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 <root@stephanos.io>
  • Loading branch information
stephanosio committed Feb 22, 2022
1 parent 9b72c9a commit 4971157
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4971157

Please sign in to comment.