The default behaviour of sudo (true, to be used every time) is problematic because in some cases, the runner will not have sudo installed, but might already be root (for example containers)
I propose two potential solutions :
Set the default value of sudo to false (aren't most runners already run with root ?)
Set the default value of sudo to detect, which would not use sudo if the user UID is 0 (already root)
What do you think ? I'd be glad to submit a PR once I get your feedback
The default behaviour of sudo (
true
, to be used every time) is problematic because in some cases, the runner will not have sudo installed, but might already be root (for example containers)I propose two potential solutions :
sudo
tofalse
(aren't most runners already run with root ?)sudo
todetect
, which would not use sudo if the user UID is 0 (already root)What do you think ? I'd be glad to submit a PR once I get your feedback