medyagh / setup-minikube

official minikube github action, continuous integration test on Kubernetes cluster, test your code on a certified Kubernetes
https://minikube.sigs.k8s.io/docs/tutorials/setup_minikube_in_github_actions/
MIT License
96 stars 31 forks source link

Error setting up on self hosted runner #301

Closed agunapal closed 4 months ago

agunapal commented 1 year ago

I get this error when trying to setup on a self hosted runner

Run medyagh/setup-minikube@latest
Error: EACCES: permission denied, mkdir '/home/runner'

I guess thats expected since there is no user called runner.

How do I get around this?

spowelljr commented 4 months ago

Hi @agunapal, the issue is we actually have /home/runner hardcoded, I'll update this to use os.homedir()

https://github.com/medyagh/setup-minikube/blob/9ed194ee345beecad406ec1b59b177509f00dcf2/src/download.ts#L55