We are using the drone exec runner on a mac machine, as a non root user, but the exec runner seems to show erratic behavior, where it at most times runs as the root user, but occasionally switches to use another user on the machine when another build is triggered/ a build is restarted. Is there a definitive way to specify the user that runs commands in pipelines using the exec runner on MacOS?
What we have tried:
We have attempted to manually specify the user in drone exec runner’s launchd file, but this seems to have no effect. The exec runner process on the machine seems to be running as the user specified in the launchd file (which is a non root user, with no sudo access either), but executing the command “id -un” on a pipeline step still displays the user for the pipeline as “root”.