maxim-lobanov / setup-xcode

Set up your GitHub Actions workflow with a specific version of Xcode
MIT License
280 stars 28 forks source link

Self hosted runner asks for password #38

Closed alexandru-calinoiu closed 2 years ago

alexandru-calinoiu commented 2 years ago

When running in a self-hosted runner it asks for the password of the current user. Any ideas on how to work around it?

maxim-lobanov commented 2 years ago

It is by design behavior because command to switch Xcode should be run with sudo. If you will switch Xcode without this action, you will face with the same issue. On Hosted Runners, we have passwordless sudo. (Link 1), (Link 2).

Probably, you can disable password for sudo on your self-hosted agent. I have seen a lot of self-hosted agents with disabled sudo but you should take security concern into account (how this agent is used, who has an access to it and etc)

alexandru-calinoiu commented 2 years ago

Got it, thanks for the answer.