PR Decoration not showing

PR Decoration stop showing, we don’t see the comment and the check.
I checked and the project is bounded, we are using the latest SonarSource/sonarqube-scan-action (v6) I can see in the report the It know which PR and base branch.
In sonar I can see all the data and it is valid but again no comment is posted to the PR.
I ran the action in debug mode and can’t see anything special.

Hi,

Can you check your project Administration → Background Tasks, and see if anything looks amiss there?

Which DevOps platform are we talking about? And do you have a PAT set at the project level? If so, can you try refreshing it with a new one?

 
Thx,
Ann

I’m on github actions, I did all that you suggest but it didn’t help.
Background tasks is all green, all the task there are “Project Analysis” I don’t know if PR decorations gets a diffrent task.

The PAT is on the user level (mine, I’m an admin) I recreated it and I can see that the new one is being used.

two things that I forgot to mention:

  1. We are on monorepo (but PR decoration worked before)
  2. We switch github orgs

Thank you for your help, what should we check next?

Hi,

Here we go:

SonarQube Cloud is still trying to decorate the repo in the old org.

Did you change [your] organization binding?

 
Ann

yes we did and everything works (expect PR decoration), I see in the action the link to the report, it knows the PR name, stats looks valid just no decoration.

Hi,

Do you mind sharing your organization ID?

 
Thx,
Ann

sure, doitintl

1 Like

Hi,

Thanks!

I’ve flagged this for the folks with better log access.

 
:sweat_smile:
Ann

Hi @erlichmen

Sorry for the delay. Since you recently switched GitHub organizations, could you please double-check that this step from the documentation was completed?

  1. Change the binding of each project in the SonarQube Cloud organization. See Changing project binding for more information.

In our logs, we see a 404 error for the installationId. This indicates that SonarQube Cloud cannot find the link between your repository and the GitHub App in your new organization; it is likely still looking for an id from the old GitHub Org that no longer exists.

To fix this:

  1. Go to Administration > General Settings > Repository Binding for this project.
  2. Rebind the repository to ensure it points to the correct one under the new GitHub organization.
  3. This should refresh the internal id and restore the PR decoration.

Note: You may need to temporarily bind your project to a different repository and save it, then switch it back, to force the update.

Best regards,

Bogdana

1 Like