PR Decoration not working for Github and Cloud Build

Hi, I am running Pull request analysis from GCP Cloud build using sonar-scanner-cli. Although the scan runs successfully when I create a PR but the results don’t appear in Github.

- '-Dsonar.pullrequest.key=$_PR_NUMBER'
- '-Dsonar.pullrequest.branch=${_PR_BRANCH}'
- '-Dsonar.pullrequest.base=${_PR_BASE_BRANCH}'

Is there anything else required to get it working

Hey there!

Is your SonarCloud project bound?

That was the issue. It works well after binding my project to Github repo.
Thanks for the tip.

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