currently the my Sonar Github Action is triggered when the previous Build Action is finished successfully.
Yet, it seems this way of running the sonarScanner breaks the automatic branch detection, which results in mixing up the analysis result of analysed branch with main branch.
So, is there any way to pass information about the branch that’s actually analyzed to the scanner?
Or how does the autodetection actually work?