Last Analysis failed: f0a8557c-f764-456c-8aec-0f914d3ea389

Template for a good new topic, formatted with Markdown:

  • ALM used (GitHub)
  • CI system used (GitHub Actions)
  • Scanner command used when applicable:
  • SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9
      with:
        projectBaseDir: .
        scannerVersion: 8.0.1.6346
        scannerBinariesUrl: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli
      env:
    
  • Languages of the repository: TypeScript
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • 04:34:29.860 INFO  Load active rules
    04:34:31.244 INFO  Load active rules (done) | time=1386ms
    04:34:31.426 ERROR You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other.
    04:34:31.752 INFO  EXECUTION FAILURE
    
  • Automatic Scan is turned off no initial scan completed. Deleted and re-added project to be sure.
  • Potential workaround: none scan check from github fails

HI,

Welcome to the community!

What does this mean to you?

 
Thx,
Ann

No I have double checked that Automatic is disabled.

Hi,

Could I have a screenshot of that?

 
Thx,
Ann

Here you go

Hi,

I had another user just report that things started working after he flipped that toggle twice. So could you turn it on and back off. No you shouldn’t have to do that, but let’s see if it works. If it does, you’re unstuck! (and I’ll report this to the team.) If it doesn’t, I’ll flag this for the team to help.

 
Thx,
Ann

Tried that and get the same results. :frowning:

Hi,

Thanks for trying. I’m going to call in help.

 
Ann

Any update on this? I would like to either change my workflow to automatic, less ideal of get this resolved so I can get scans working.

Thanks

Hi,

Hopefully they’ll be along soon.

 
Ann

Bumping this again. Any response from the team?

Hi,

I wish I had news for you.

 
Ann

Hi @KevinBarnard,

Thank you for bearing with us!

What I’m seeing is that the scanner is still detecting Automatic Analysis as the analysis method, which is causing the process to fail because that feature is disabled:

ERROR Can not start analyzing because Automatic Analysis is disabled

Could you please try deactivating the CI autoconfiguration by setting the sonar.ci.autoconfig.disabled parameter to true in the scanner and let us know the result?

Normally, the autoconfig should detect that you are using GitHub Actions via the GITHUB_ACTION environment variable. Would you be able to verify if that variable holds a value when your workflow is running?

Best