Skip to content
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

Allow the runner to be run by a non root user #81

Open
andycockerill-cpi opened this issue Nov 17, 2021 · 5 comments
Open

Allow the runner to be run by a non root user #81

andycockerill-cpi opened this issue Nov 17, 2021 · 5 comments

Comments

@andycockerill-cpi
Copy link

In relation to #64 can functionality be added to allow the runner to be run by a non root user. We have a requirement for this that I'm sure is not all that unusual, where we need a non root user to do build tasks. We are not using Docker to build, but running in the EC2 instance.

I understand that the startup script is run as root, but there must be a way to tell the script to run the GitHub runner service as a different user.

@kpturner
Copy link

I think this is because the action runs ./run.sh to start the listener so it is doing so within the user data execution - which runs as root.

If the user data code did this:

./svc.sh install
./svc.sh start

then it would run as a service and not as root.

Ideally we would need the code to change or for an input override to the action to ask for this different way of starting the listener.

@kpturner
Copy link

kpturner commented Nov 1, 2022

Something like this: #122

@Preen
Copy link

Preen commented Jan 4, 2023

Any news on this?

1 similar comment
@Flyingliuhub
Copy link

Any news on this?

@kpturner
Copy link

kpturner commented Jul 4, 2023

Click on the link in my comment above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants