mxschmitt / action-tmate

Debug your GitHub Actions via SSH by using tmate to get access to the runner system itself.
https://mxschmitt.github.io/action-tmate/
MIT License
2.93k stars 287 forks source link

Default behaviour of sudo #135

Closed iTrooz closed 2 years ago

iTrooz commented 2 years ago

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 :

What do you think ? I'd be glad to submit a PR once I get your feedback