Discrepancy between jacoco and sonarqube report

Hello. I’m trying to setup Sonarqube reporting for my repo. Code coverage on Sonarqube report is being reported as 0% while Jacoco report shows a coverage of 4%. Could you please help identify why this discrepancy exists?

Using Sonarqube Community Edition Version 8.9.9 (build 56886) and GitHub Enterprise Server 3.8.8

.github/workflows/pull_request.yaml file:

- name: Sonarqube scan
  uses: actions/sonarqube-scan-action@v1.2.0
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    SONAR_HOST_URL: https://sonar.myHost.biz/
    args: >


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.8 → 9.9.1 → 10.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your issue persists after upgrade, please come back to us.