Sonarcloud pullrequest issue

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

sonarcloud:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
      with:
        fetch-depth: 0
    - name: SonarCloud Scan
      uses: sonarsource/sonarcloud-github-action@master
      env:
        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 https://sonarcloud.io/api/alm_integration/show_pullrequest?project=Lorem_ipsum-app&pullrequestKey=12088 : {“errors”:[{“msg”:“An unexpected error occurred. Please try again later.”}]}

Can you help me to resolve this issue please ?
Thanks

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?

Thanks,
Sarath

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?

@Muhammad_Arslan,

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?

Sarath

sure, let me check.