Can I add PR decoration when maven scanner is used for the java project code analysis

Hello,

I am using maven scanner for my java project and scanning is working good and analysis reports are appearing in sonarqube project dashboard as expected.

Now I want to add the analysis report to my Project PRs so that developer can have an overview at PR itself and once the failure observed he/ she can go to sonarqube dashboard and explore.

Note: I am using SonarQube community edition

Following is my yml file with maven goal sonar.


jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis
      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11
      - name: Cache SonarQube packages
        uses: actions/cache@v1
        with:
          path: ~/.sonar/cache
          key: ${{ runner.os }}-sonar
          restore-keys: ${{ runner.os }}-sonar
      - name: Cache Maven packages
        uses: actions/cache@v1
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2
      - name: Build and analyze
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Needed to get PR information, if any
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
          SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
        run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=sonarProject

Pull Request Analysis is only available in the Developer Edition of SonarQube and higher.

Thank you @Colin for the reply. Yes I understand that.