highbyte / sonarscan-dotnet

GitHub Action SonarCloud/SonarQube scanner for .NET 8/7/6/5 and .NET Core applications with pull request decoration support
https://github.com/marketplace/actions/sonarscan-dotnet
MIT License
36 stars 24 forks source link

Sudo #17

Closed JamieWithofsPXL closed 1 year ago

JamieWithofsPXL commented 1 year ago

is it possible to run the dotnet test command as root user with sudo?

highbyte commented 1 year ago

Hi, This Action is implemented as a Docker image (executing separate from the GitHub Workflow host that started it). I believe that the base image (mcr.microsoft.com/dotnet/sdk) that this Action is derived from is already running as root, so using sudo in it would not change anything as I understand it.