Template for a good new topic, formatted with Markdown:
ALM used (GitHub, Bitbucket Cloud, Azure DevOps)
GitHub
CI system used (Bitbucket Cloud, Azure DevOps, Travis CI, Circle CI
Bitrise
Scanner command used when applicable (private details masked)
sonar.organization=xxx
sonar.projectKey=xxx
sonar.host.url=https://sonarcloud.io
sonar.projectName=xxx
sonar.language=swift
sonar.login=xxx
sonar.pullrequest.provider=github
sonar.pullrequest.github.repository=xxx
sonar.pullrequest.key=1
sonar.pullrequest.branch=xxx
sonar.pullrequest.base=master
Languages of the repository
Swift
Only if the SonarCloud project is public, the URL
And if you need help with pull request decoration, then the URL to the PR too
It is private project
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
no error/warning show on sonarcloud site but no github check on the pr as well
Steps to reproduce
run sonar-scanner with the sonar-project.properties on either local machine or bitrise workflow
Can you share with me the background task id of the analysis that was not reported to the GitHub? You can find it in Administration -> Background tasks.
Is the repository that you are trying to analyze part of your GitHub organization? Can you see the repository in the list here: https://sonarcloud.io/projects/create (after you select the right org)?
Hi @Marcin_Majewski
yes, it is. I can see it in the list. I also tried it with github action and it can make the decoration properly (just run sonar scanner with out build/test anything) but it’s not working with Bitrise. I wonder if I missing any configuration?
Is it feasible for you to re-import the project from the link: https://sonarcloud.io/projects/create ? I see that the project has been created manually rather then imported from the list. This is not really recommended way. Once imported you will not have to pass the properties like ‘sonar.pullrequest.provider’ or ‘sonar.pullrequest.github.repository’
Coming back to your configuration. I think your sonar.pullrequest.github.repository property is wrong. It should be GitHub SLUG meaning for e.g : facebook/react ({org}/{repo}) not only repository name. Let me know if this solved your problem.