Search code examples
sonarqubeschema.yml

Sonarcloud: YML file - what to use as clean build command


I’ve been trying to scan a project written in C# in Sonarcloud and when I write the .github/workflows/build.yml file, I should “Replace <insert_your_build_command> by the actual one”. Maybe I’m a bit stupid but I have no clue what I should use as the build command.

Maybe someone here has an answer to this :)

Thanks!


Solution

  • The Replace <insert_your_build_command> by the actual one should mean you should replace it with the steps you do to build your project. In your case, since it seems to be a dotnet project, following can be inserted:

    dotnet build

    Please update if it works.