Pull Request Key in Circle CI

Hello, I need to scan a pull request that is on another branch. I am using CiclerCI and when the scan runs it asks for sonar.pullrequest.key = ?.
How do I get this information dynamically within the SonarCloud scan?

This may help you out. :slight_smile:

https://docs.sonarqube.org/latest/analysis/pull-request/

I’m put my sonar.pullrequest.key in my sonar-project.properties file. Is it correctly?
Who i get this information from CI?

Hi @UilianM

We propose a dedicated CircleCi orb that does this for you.

Check it out : https://circleci.com/orbs/registry/orb/sonarsource/sonarcloud

HTH,
Mickaël

I’m using this Orb and this problem refer a this Orb.

Are you using GitHub for you code repo ? Is your project correctly bound between SonarCloud and GitHub ? Is there any chance that your branch comes from a fork ?

Hi.
My project is there in Github. Yes, it is configured correctly in Sonar.
My Branch isn’t a fork.