Salesforce Apex Code Coverage is not being uploaded to SonarCloud

Hi All,

I am integrating the Sonarcloud for the public github repository and noticed that the Code Coverage is not being uploaded to SonarCloud UI.

Any help will be appreciated.

  • ALM used (GitHub)
  • CI system used (Github Action)
  • Scanner command used when applicable
- name: SonarCloud Scan
        id: sonar
        uses: SonarSource/sonarcloud-github-action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Needed to get PR information, if any
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
        with:
          args: >
            -Dsonar.apex.coverage.reportPath=test-result-codecoverage.json

What do the logs say about importing code coverage?