name: SonarQube Analysis on: pull_request: branches: - master permissions: contents: read pull-requests: read jobs: SonarQube: runs-on: "docker" steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Build and analyze run: mvn clean verify -DskipTests && mvn sonar:sonar -Dsonar.projectKey="${{ secrets.SONAR_PROJECT_KEY }}" -Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" -Dsonar.login="${{ secrets.SONAR_TOKEN }}"