I am able to analyze the master branch in SonarQube using Github actions. But when I try to analyze the feature branch with a pull request in SonarQube, the analysis happens in the master branch instead of the feature branch. Attached are the relevant logs and screenshots. Can you please help?
This is going to be about the configuration of analysis in your CI job. We’ve done work to make sure that some CIs pick up branch/PR values from the environment and pass them forward in analysis so the right thing gets analyzed. But by no means has that been universal across all CIs so you may have to provide those values manually. The docs should help: