Builds using the version 8.0.0.69125 are running ok. The newer version returns a 403.
Using the SonarCloudPrepare@3 task
- ALM used Azure DevOps
- CI system used Azure DevOps
2025-10-23T15:23:53.2453059Z ##[section]Starting: SonarCloudPrepare
2025-10-23T15:23:53.2460981Z ==============================================================================
2025-10-23T15:23:53.2461088Z Task : Prepare Analysis Configuration
2025-10-23T15:23:53.2461147Z Description : Prepare SonarQube Cloud analysis configuration
2025-10-23T15:23:53.2461220Z Version : 3.4.1
2025-10-23T15:23:53.2461272Z Author : sonarsource
2025-10-23T15:23:53.2461323Z Help : [More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2025-10-23T15:23:53.2461427Z ==============================================================================
2025-10-23T15:23:53.6686611Z [INFO] SonarQube Cloud: Server version: 8.0.0.69127
2025-10-23T15:23:53.6799052Z [INFO] SonarQube Cloud: Downloading scanner from https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/8.0.3.99785/sonar-scanner-8.0.3.99785-net-framework.zip
2025-10-23T15:23:53.6799880Z Downloading: https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/8.0.3.99785/sonar-scanner-8.0.3.99785-net-framework.zip
2025-10-23T15:23:53.9871400Z Extracting archive
2025-10-23T15:23:54.0673558Z [command]C:\Windows\system32\chcp.com 65001
2025-10-23T15:23:54.0999048Z Active code page: 65001
2025-10-23T15:23:54.1008230Z
2025-10-23T15:23:54.1146786Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\2f004cdb-f6e4-4521-aee2-3aea1e117c7c', 'D:\a\_temp\41ee48f5-2642-46bc-83b5-d27317187de2')"
2025-10-23T15:23:54.6034154Z
2025-10-23T15:23:54.6140999Z Caching tool: SonarScanner .NET 8.0.3 x64
2025-10-23T15:23:54.8766925Z [command]"C:\hostedtoolcache\windows\SonarScanner .NET\8.0.3\x64\SonarScanner.MSBuild.exe" begin /k:REDACTED_GAP /o:REDACTED
2025-10-23T15:23:54.9925645Z SonarScanner for MSBuild 8.0.3
2025-10-23T15:23:54.9947463Z Using the .NET Framework version of the Scanner for MSBuild
2025-10-23T15:23:55.0415571Z Pre-processing started.
2025-10-23T15:23:55.0481307Z Preparing working directories...
2025-10-23T15:23:55.4016044Z 15:23:55.399 Updating build integration targets...
2025-10-23T15:23:56.1475280Z 15:23:56.145 Using SonarCloud.
2025-10-23T15:23:56.4760815Z 15:23:56.474 The JRE provisioning is a time consuming operation.
2025-10-23T15:23:56.4761425Z JRE provisioned: OpenJDK17U-jre_x64_windows_hotspot_17.0.11_9.zip.
2025-10-23T15:23:56.4762009Z If you already have a compatible java version installed, please add either the parameter "/d:sonar.scanner.skipJreProvisioning=true" or "/d:sonar.scanner.javaExePath=<PATH>".
2025-10-23T15:23:58.8994289Z 15:23:58.898 Fetching analysis configuration settings...
2025-10-23T15:23:59.7963113Z
2025-10-23T15:23:59.7986430Z ##[error]Unhandled Exception:
2025-10-23T15:23:59.8042008Z ##[error]System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<TryDownloadIfExists>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.PreProcessor.WebServer.SonarWebServer.<DownloadQualityProfile>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SonarScanner.MSBuild.PreProcessor.PreProcessor.<FetchArgumentsAndRuleSets>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.PreProcessor.PreProcessor.<DoExecute>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.PreProcessor.PreProcessor.<Execute>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.BootstrapperClass.<PreProcess>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.Program.<Execute>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.Program.<Execute>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SonarScanner.MSBuild.Program.<Main>(String[] args)
2025-10-23T15:23:59.8089815Z System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 ().
2025-10-23T15:23:59.8117900Z at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2025-10-23T15:23:59.8194850Z at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<TryDownloadIfExists>d__5.MoveNext()
2025-10-23T15:23:59.8228281Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8229192Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8229808Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8230313Z at SonarScanner.MSBuild.PreProcessor.WebServer.SonarWebServer.<DownloadQualityProfile>d__17.MoveNext()
2025-10-23T15:23:59.8230874Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8231350Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8231821Z at SonarScanner.MSBuild.PreProcessor.PreProcessor.<FetchArgumentsAndRuleSets>d__9.MoveNext()
2025-10-23T15:23:59.8232293Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8233000Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8233464Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8233926Z at SonarScanner.MSBuild.PreProcessor.PreProcessor.<DoExecute>d__7.MoveNext()
2025-10-23T15:23:59.8235252Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8236078Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8236560Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8237059Z at SonarScanner.MSBuild.PreProcessor.PreProcessor.<Execute>d__6.MoveNext()
2025-10-23T15:23:59.8237498Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8237929Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8238407Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8238877Z at SonarScanner.MSBuild.BootstrapperClass.<PreProcess>d__9.MoveNext()
2025-10-23T15:23:59.8239315Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8239744Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8240211Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8240687Z at SonarScanner.MSBuild.BootstrapperClass.<Execute>d__8.MoveNext()
2025-10-23T15:23:59.8241121Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8241549Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8242019Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8242477Z at SonarScanner.MSBuild.Program.<Execute>d__4.MoveNext()
2025-10-23T15:23:59.8242898Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8243329Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8243795Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8244289Z at SonarScanner.MSBuild.Program.<Execute>d__3.MoveNext()
2025-10-23T15:23:59.8244744Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8245167Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8245784Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8246219Z at SonarScanner.MSBuild.Program.<Main>d__2.MoveNext()
2025-10-23T15:23:59.8246617Z --- End of stack trace from previous location where exception was thrown ---
2025-10-23T15:23:59.8247029Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2025-10-23T15:23:59.8247482Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2025-10-23T15:23:59.8248995Z
2025-10-23T15:23:59.8249206Z
2025-10-23T15:23:59.8250329Z ##[error][ERROR] SonarQube Cloud: Error while executing task Prepare: The process 'C:\hostedtoolcache\windows\SonarScanner .NET\8.0.3\x64\SonarScanner.MSBuild.exe' failed with exit code 3762504530
2025-10-23T15:23:59.8251774Z ##[error]The process 'C:\hostedtoolcache\windows\SonarScanner .NET\8.0.3\x64\SonarScanner.MSBuild.exe' failed with exit code 3762504530
2025-10-23T15:23:59.8337629Z ##[section]Finishing: SonarCloudPrepare