Sonarcloud pullrequest issue

I’m using Github Action integration to “sonar” my application.
This is the action code :

    runs-on: ubuntu-latest
    - uses: actions/checkout@v3
        fetch-depth: 0
    - name: SonarCloud Scan
      uses: sonarsource/sonarcloud-github-action@master
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Final Memory: 10M/40M
ERROR: Error during SonarScanner execution
Something went wrong while trying to get the pullrequest with key ‘12088’
ERROR: Caused by: Error 500 on : {“errors”:[{“msg”:“An unexpected error occurred. Please try again later.”}]}

Can you help me to resolve this issue please ?

Hello @mlamarque,

Welcome to the community. Can you please provide me privately the complete logs so that I can debug this? I would also like to ask few questions:

  1. Is it failing on all the PRs?
  2. Is it also failing on merges to master/main branch?


Hi Sarath_Nair , hope you’re doing great. I’m having the same issue as reported mlamarque. in my case, it’s failing on all PRs but when I merge PR into main branch it got success. can you please assist me how can I resolve this issue?


I have messaged you in private to get more info

Hello @Muhammad_Arslan,

I checked the logs and there seem to be some permission issues. You can try these:

  1. Can you check if the project is bound to GitHub?
  2. If it is already bound, can you try rebinding the project again to see if it works?


sure, let me check.