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:


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


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 ?

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

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