How to run a Hosted macOS agent task *without* root permissions? #7173
Unanswered
AArnott
asked this question in
General questions
Replies: 1 comment 1 reply
-
|
@AArnott Hello, a task itself does not limit your permissions as far as I am aware. You have to run rootless agent in first place and register it in github/azure devops |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to run tests on macOS that must not run with
rootpermissions. But Hosted macOS agents run with super user permissions by default. How can I opt a task (or the whole job) out of super user permissions?Justification:
macOS-12 generally requires binaries to be signed and have entitlements properly set. But for super user accounts, this requirement is dropped. As part of my tests, I want to validate that my program will actually work on a mac for the ordinary user. I can't do that when the tests pass even though they should be failing.
Beta Was this translation helpful? Give feedback.
All reactions