Hi Team,
The organization that I am working for is running into an issue with the PR decorators. Sonarcloud Analysis is being used on repositories.
We are using CI based analysis and the CI tool used is codefresh. We can see that the Sonarcloud analysis is finished and the Sonarcloud dashboard has been updated after the CI pipeline has finished.
However the SonarCloud Code Analysis check and comment are both not there in Github. The SonarCloud, Code Analysis check and comment are both available in Github when automatic analysis is enabled.
Due to the fact that our project involves various languages, we wish to use the CI-based analysis.
Could you provide the steps for CI based analysis with codefresh to make the SonarCloud Code Analysis check and comment available in Github.
Hi,
Thank you for the response. Please find the requested details below.
* You are using github as git repository for your projects **--correct**
* You are using a CI tool called codefresh to run SonarCloud analysis **--correct(We have a repo which contains multiple languages and using CI tool codefresh we are analysing only the typescript ones and y**
** es that works)**
* The analysis works and you get your results in sonarcloud **--correct**
* You want the result of the analysis to be displayed in github as PR decoration **--yes and this is not working**
* The PR decoration works with autoscan but not with codefresh **--yes that is also correct**
In essence, there are two problems:
First issue
Our repository spans several languages. We were attempting to convert it to a monorepo(We referred the documentation on the same).
However, we are passing “sonar.projectKey” and “sonar.projectName” in the file sonar-project.properties. But there are numerous projectKeys in the case of monorepo. Can more than one “sonar.projectKey” be provided in the sonar-project.properties file and retrieved in the codefresh.yml file?