Maven project release consist of two consecutive commits:
The sonar-trigger workflow is invoked twice and when it comes to actually running the analysis, it is being run on the HEAD commit of main branch (i.e. the same reference). We need the analysis to run on the actual commit id.