Missing blame information for Maven project with Github action

Hello community,
recently I put just another repository from us under observation of SonarQube (v The repository is built on Github with a GitHub Actions workflow. The project contained in the repo is a Maven project, thus I use this Maven dependency for the analyser:


According to here I checkout my repo during the build with the following Github action:

    runs-on: ubuntu-latest
      - uses: actions/checkout@v2
          fetch-depth: 0
      - name: Set up JDK 14
        uses: actions/setup-java@v1
          java-version: '14'
      - name: Build with SonarQube PR decoration
        run: mvn clean verify sonar:sonar 
          -Dsonar.projectKey=${{ secrets.MY_PROJECT }} 
          -Dsonar.projectName=${{ secrets.MY_PROJECT }} 
          -Dsonar.host.url=${{ secrets.MY_URL }} 
          -Dsonar.login=${{ secrets.MY_TOKEN }} 
          -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} 
          -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} 

But unfortunately I do not see any information regarding the authors of the code. In the head of the project page in SonarQube I do see 2 warnings:

  1. Shallow clone detected during the analysis. Some files will miss SCM information. This will affect features like auto-assignment of issues. Please configure your build to disable shallow clone.
  2. Missing blame information for 33 files. This may lead to some features not working correctly. Please check the analysis logs.

How can I achieve this?


The problem seems to be on the GH Actions side with the shallow clone, so I did a little googling & found this.