Main Branch Evolution not updating after sonar analysis

The SonarCloud Main Branch Evolution isn’t updating after analysis. All analysis are triggered by GitHub Actions workflow. How can I keep this overview panel updated?

Thanks.

Hey there.

on: 
  pull_request:
    branches:
      - develop
      - master

It looks like your action is only configured to run on pull requests targeting these two branches – if you want SonarCloud analysis to run on your main branch, you will have to reconfigure your action to also run when those branches are pushed to.

While doing so, you should also take these out:

        -Dsonar.pullrequest.provider=GitHub
        -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}

SonarCloud is smart enough to pick these up from environment variables that are set by GitHub Actions.

Since your project is all Python, you may benefit from Automatic Analysis – but that would mean giving up coverage reporting.

1 Like

Thanks for your reply!

I follow your steps and it works. Thanks so much again!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.