Coverage not showed for manual PR analysis in Drone CI

I am trying to analyze PRs on github manually using the scanner including the code coverage and duplications to check issues before merging to master.
I have another analysis on master using the same analysis parameters used for PR but with different parameters passed to the scanner.
I am using the latest docker image for sonarsource/sonar-scanner-cli following the documentation here

The command used is:

sonar-scanner -Dsonar.login=$SONAR_LOGIN$SONAR_HOST -Dsonar.pullrequest.key=${DRONE_PULL_REQUEST} -Dsonar.pullrequest.branch=${DRONE_SOURCE_BRANCH} -Dsonar.pullrequest.base=${DRONE_TARGET_BRANCH} -Dsonar.pullrequest.provider=github -X

You’ll need to make sure your coverage reports are passed to an analysis parameter defined in our Test Coverage & Execution docs.

:warning: Why are you running analysis manually instead of automatically (say, running a build/analysis whenever a PR is raised)?

I am passing the coverage report in the and if I enable debug, sonar shows it is parsing it.
The problem is that only for PRs it does not show current branch coverage.

The more information you provide, the better. :slight_smile: Screenshots… what you expect to see (what coverage do you expect to be reported?), how it is different from what you actually see reported, etc.

I am running an analysis on Drone CI whenever a PR is raised.
Running the following command in drone sonar-scanner -Dsonar.login=$SONAR_LOGIN$SONAR_HOST -Dsonar.pullrequest.key=${DRONE_PULL_REQUEST} -Dsonar.pullrequest.branch=${DRONE_SOURCE_BRANCH} -Dsonar.pullrequest.base=${DRONE_TARGET_BRANCH} -Dsonar.pullrequest.provider=github -X gives me this result:

If i run this on my machine the result is the following.

There seems to be an issue on how Drone checkouts the branch/PR, because I cannot find any other issues, the log of sonar-scanner on drone does not give me any warning.