ec2-github-runner
ec2-github-runner copied to clipboard
Parameterise execution of runner (update)
This is just https://github.com/machulav/ec2-github-runner/pull/122 rebased on top of main
and dist/index.js
updated after running npm run package
, all credit goes to @kpturner.
I've also fixed a small issue where if the CI job was set to run as a user, and let it download the GitHub runner code, it wouldn't work (see https://github.com/machulav/ec2-github-runner/pull/122#discussion_r1194972979 for context, fix is in https://github.com/machulav/ec2-github-runner/commit/35580d0afba9bc09a2e504ba34491d7079408e53)
@kpturner I hope it's ok with you I submitted this PR, I don't mean to take credit for your work, I've submitted it in the hopes that it'd be easier for @machulav to merge your work more quickly (dist/index.js
up to date, fix for runner running as a user).
@kpturner I hope it's ok with you I submitted this PR, I don't mean to take credit for your work, I've submitted it in the hopes that it'd be easier for @machulav to merge your work more quickly (
dist/index.js
up to date, fix for runner running as a user).
It is fine by me - as long as it helps somebody I am not bothered about who gets the credit :)
@machulav I've rebased this PR on top of main
to fix the conflicts. Is there anything that needs to be addressed before being merged? Thanks.
@alonbl I know nothing about Javascript, I only updated #122 and fixed a bug to make it easier for @machulav to merge this PR as we're currently using at the Autoware Foundation, but if there's any improvements missing, feel free to submit a PR targeting this one, I'm more than happy to incorporate your changes. Thanks!
Hello! Any chance this PR will be merged to enable running the ec2 self-hosted runner as non-root?
@machulav @hvgazula we've been using this branch for the past eight months at the Autoware Foundation without an issue, but I'd prefer it to get merged instead of using our fork. Is there any feedback I should address? Thanks.
@machulav @hvgazula we've been using this branch for the past eight months at the Autoware Foundation without an issue, but I'd prefer it to get merged instead of using our fork. Is there any feedback I should address? Thanks.
Thank you for replying @esteve. Is it on the main branch of your fork? I agree it'd be nice to have this feature merged in here. I'll ask this again for attention :). @machulav any chance you can merge this feature?
@hvgazula it's here https://github.com/esteve/ec2-github-runner/tree/Optionally-execute-runner-as-a-service
My fork is just an updated version of @kpturner 's work from https://github.com/machulav/ec2-github-runner/pull/122 plus a couple of minor fixes needed to run as a non-root user.
Thanks, @esteve. It worked.
@machulav we also need to run specs as a non-root user, it would be great to see this merged