:sonarqube (Thread[Execution worker for ':',5,main]) completed. Took 14.931 secs.
* What went wrong:
27 actionable tasks: 27 executed
Execution failed for task ':sonarqube'.
> Something went wrong while trying to get the pullrequest with key '395'
The gradle plugin seems to give less debug output than the Maven plugin since it’s not saying why it failed to fetch the PR.
So it seems this is happening because your SonarCloud organization is not bound anymore to the Github organization.
This could happen if you removed the SonarCloud application from your organization on Github. Re-installing it and binding again your SonarCloud organization should fix the error.
Ok so once your organization has the SonarCloud app installed and you can see the github indicator you should try restarting the Github Action that does the analysis.
Right now I see that the last run of your Github action was 5 days ago. Make sure you run it with the organization correctly bound.
I was able to see the indicator stating the Github organization was not bound. The Github repository was being shown as bound as shown in my screen shot.
The fix was to grant SonarCloud access to ALL repositories which then showed the Github organization as being bound.