fix: circleci doesn't have permissions (#34)#35
Conversation
CircleCI runs a process called '.machine-agent' which needs permissions to do all the things required for the test.
I created a variable to make it clearer what this path is for.
The macos orb[1] has an 'add-permission' command but it's hard coded to expect a bundle id, not a path to an executable so we can't use it.
Some permissions can be got from
- macos/add-uitest-permissions
- macos/add-safari-permissions
- macos/add-voiceover-permissions
but not enough for a VoiceOver test
[1]: https://circleci.com/developer/orbs/orb/circleci/macos
|
Thanks @hbk619 The feedback loop as to success here won’t be great as this project doesn’t kick of a CircleCI test to check (perhaps one for future) - have you confirmed that these permissions will be sufficient? Alternatively, it could be worth contributing to the See CircleCI-Public/macos-orb#15 as an example contribution (though an old one and repo has likely moved forward!) |
|
Thanks for the quick response! I've tested with Safari and screen recording but not other browsers. I didn't realise you were the author of |
Maybe raise an issue with that repo and see what the maintainers suggest? For now happy to have this here as have already got GitHub and GitLab specific permissions. Might have a think about whether add some feature detection or flags to specify CI specific configs in future. |
Issue
Fixes #34
Details
CircleCI runs a process called '.machine-agent' which needs permissions to do all the things required for the test.
I created a variable to make it clearer what this path is for. The macos orb1 has an 'add-permission' command but it's hard coded to expect a bundle id, not a path to an executable so we can't use it.
Some permissions can be got from
but not enough for a VoiceOver test
CheckList