mc1arke / sonarqube-community-branch-plugin

A plugin that allows branch analysis and pull request decoration in the Community version of Sonarqube
GNU Lesser General Public License v3.0
2.26k stars 527 forks source link

Status checks don’t update. #955

Open TauanSantana opened 2 months ago

TauanSantana commented 2 months ago

Describe the bug Everything works fine, the Pull Request Decoration appears, the Pull Request analytics appear in SonarQube, but the Status checks don’t update. I tried several patterns for the Status Check name, but none of them work. Am I doing something wrong or is this a bug?

To Reproduce

  1. Configure "DevOps Platform Integration" on SonarQube Administration and in Project
  2. Create a ruleset and enable "Require status checks"
  3. Add the name of the expected Status.
  4. Run an analysis on the main branch
  5. An action will start analyzing the Main
  6. Create a branch and change something.
  7. Make a pull request to the main branch
  8. An action will start analyzing the Pull Request

Expected behavior After the pull request analysis, the Status Check (required) should be resolved, as the Quality Gate passed successfully.

Screenshots image (2) image (3)

Software Versions

jenistenxavier commented 2 months ago

@TauanSantana : Would like to check the steps that are executed on these jobs. I believe certain actions have this impact on the status checks reported back to Github. May be alternative way to test this would be to print hello world step (excluding all the current steps on the job) and check out the status check feature on GitHub.

mc1arke commented 6 days ago

Does the action [that] will start analyzing the Pull Request complete successfully? This is the one what creates the status