tl;dr: We want to run sonarcloud analyse for our java application with a github action.
we are building our application (https://github.com/synyx/urlaubsverwaltung/) with GitHub Actions as you can see in the .github directory. In the early days, before GitHub Actions, we build it with travis and the integration with sonarcloud was already there and easy to setup. But now we will migrate to GitHub Actions and I want to know how I can analyse my project with sonarcloud and not using travis.
There is already a Sonarcloud GitHub Action, but this one is not compatible with a java/maven based project.
There are two ways that would be ok for us.
First: Add a own sonarcloud github action
Second: Triggering sonarcloud via the maven build like mvn sonar:sonar
We would highly prefer the first, because it would fit the strategy and paradigm behind GitHub Actions.