We’re trying to split our Github actions and move Sonar code analysis to a separate workflow that is triggered after our Java CI workflow was completed successfully. Most of it looks good and promising but the check result is not reported anymore. It worked before when we executed Sonar within the Java CI pipeline. I can observe:
- Sonarcloud adds the comment “Kudos, SonarCloud Quality Gate passed!”
- I can find the PR on Sonarcloud
The code change was about moving the execution of the Gradle task to a new workflow that is triggered “on.workflow_run”.
Since our project is open source you can also have a look at the code changes:
Versions used: Sonarcloud, Gradle plugin 3.3
Any help is appreciated.