SonarQube PR analysis raising thousands of issues on existing projects

Hey @Tom_Pester

As I mentioned in the other thread, this issue is unrelated to some changes in SonarQube v10.x around PR Decoration.

I would not have zoomed in on the analysis cache issue at first, so kudos for that. I am surprised to see refs/heads/main in the cache API query.

At this point, I’m pretty sure this issue is related to the Azure DevOps Task. Which task version were you using before?

  • You can configure sonar.scanner.scanAll to stop analyzing other languages (SonarScanner for .NET 8, now with other languages auto-detection)
  • You can also try flipping back to some older versions of the tasks (like @v6) to see if it addresses the cache issue. I am going to flag this for attention, as it seems like something is not working as expected with detecting the branch name.