Github Actions not analyzing feature branch and no pull request decoration

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?

SonarQube version: 8.9 LTE
Github: Software as a service so whatever is the latest version (27.0 KB)
build.txt (928 Bytes)


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: