.NET Sonar Scanner - GitHub Actions

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
  • GitHub
  • CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
  • C#
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • “Run New-Item -Path ..sonar\scanner -ItemType Directory
    New-Item -Path ..sonar\scanner -ItemType Directory
    dotnet tool install --global dotnet-sonarscanner
    Error: powershell: command not found”
  • Steps to reproduce
  • Run GitHub Action on Check-in
  • Potential workaround

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hey there.

I suggest you share your full GitHub Actions YML.