cloudandthings/terraform-aws-github-runners

Files owned by root in _work directory

Closed this issue · 1 comments

The Github Actions runner service is configured to run as the ubuntu user.

However, sometimes files owned by root are created in the _work directory.
These cause permissions problems when cleaning up the _work folder.

I think the cause of these files is that docker is running as the root user.
Github Actions using docker could then be producing temporary files owned by root.

I've tried running docker as non-root but not had much luck.

To fix this temporarily, the ubuntu user has been added to the 'root' group.

Moving to ephemeral runners should resolve this...