Unable to Disable Automatic Analysis in SonarCloud for GitHub Action Integration

We are using SonarSource/sonarqube-scan-action GitHub Action to run code analysis for our projects but are encountering the following error:

17:33:21.407 ERROR You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other.
17:33:21.733 INFO  EXECUTION FAILURE
17:33:21.735 INFO  Total time: 21.286s
Error: Action failed: The process '/opt/hostedtoolcache/sonar-scanner-cli/8.0.1.6346/linux-x64/bin/sonar-scanner' failed with exit code 3

It seems that Automatic Analysis is enabled in SonarCloud, which is conflicting with our CI-based analyses. From what I gather, disabling Automatic Analysis can resolve this issue. However, we are unable to locate the option to turn it off in the SonarCloud interface (https://sonarcloud.io).

Are we missing something, or could someone provide guidance on how to properly disable Automatic Analysis? Any assistance would be greatly appreciated.

Hi,

Welcome to the community!

The option to turn off automatic analysis will only be available to a logged-in project administrator (note that it’s perfectly possible to be an org-level admin without having project-level rights.)

Look under Administration → Analysis method

 
HTH,
Ann

Yes, that was it. We were using an org-level admin account and were able to turn it off with a project admin.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.