Provide password to GitHub Actions macOS self-hosted runner

Viewed 1354

I have set up a CI build server using the GitHub Actions self-hosted runner instructions. Everything works fine until it reaches this instruction:

sudo xcode-select -switch /Applications/Xcode_11.5.app

it asks for my password inside the macOS Terminal. This defeats the purpose of a build server if I have to type in my password every single time this job runs. I've tried configuring the runner as a service but when I did that the job completely failed because it needs a terminal to ask for the password.

Is there a way to set the password so the runner stops asking me every single time?

1 Answers

You can try to remove the sudo command.

Related