-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arm actions running runs as root and not the runner user #60
Comments
I'm ok with it, however this is a breaking change and probably should be an option. |
any update on this? I would like if this could be a feature so that it can be used at pi-apps (Botspot/pi-apps@c4f8d64) to be used for automated testing of our automatic update github actions script. |
I am adding a new option to specify the user but you will have to make sure it exists on the image. And if you are using passwordless sudo that it has this capability. |
I added this already to my fork for my needs (adding passwordless sudo, adding the new user and groups as necessary). no configuration options but it wasn't necessary for me |
This supposes the target image has sudo installed and therefore should definitely be an option. |
I don't intend on creating a PR based on what I have done. |
OK. I'm merging #66 for now as it is creating value and closing this issue. |
github actions runs with passwordless sudo as a non-root user.
arm-runner-action runs as root (
uid=0(root) gid=0(root) groups=0(root) root
) and makes performing commands not the same as if it were run within the standard ubuntu actions (uid=1001(runner) gid=121(docker) groups=121(docker),4(adm),101(systemd-journal) runner
).this should be corrected so that arm-runner-action runs as the
runner
user with passwordless sudo enabled.The text was updated successfully, but these errors were encountered: