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

Issue trying to use ubuntu based runners with 0.27.2 #1560

Closed
nparfait opened this issue Dec 24, 2021 · 1 comment · Fixed by #1572
Closed

Issue trying to use ubuntu based runners with 0.27.2 #1560

nparfait opened this issue Dec 24, 2021 · 1 comment · Fixed by #1572

Comments

@nparfait
Copy link

I was previously using version 0.18.1 of this module. I decided to upgrade to the latest 0.27.2. However came across an issue.

I'm trying to use ubuntu runner ( i have copied user-data.sh from examples/ubuntu/templates/ )
Using the defaults the runner was registering with GIthub.

I then tried using the flag
runner_as_root = true

this then registered the runner but caused me some permissions issues between actions/checkout and my steps running in a container.

Finally i tried updating SSM parameter xxx/runner/run-as
to: runners

and this was able to run successfully.

Looking here
https://github.com/philips-labs/terraform-aws-github-runner/blob/v0.27.2/modules/runners/runner-config.tf#L4

the run as is either root or ec2-user.
The ubuntu image doesn't have an ec2-user so not sure if this is a problem or not.

Can you please advise?

@npalm
Copy link
Member

npalm commented Dec 28, 2021

Thanks for creating the issue, the ubuntu example is indeed broken. I have just created a fix in PR #1572

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

Successfully merging a pull request may close this issue.

2 participants