Sonar GitHub Action Update Comment instead of delete and add new

  • ALM used: GitHub

  • CI system used GitHub Actions

  • Languages of the repository N/A but its python

  • Error observed:

    Every time that sonar runs it deletes the old comment and adds a new one, This causes a lot of notification noise. I get that some may want this but it would be nice to have an option to say “Create new comment on each push” or “Update existing comment”. Where the tool acts as a block to a PR going through I don’t need a notification with every CI run because I have no choice but to go through and look at the comments if it is blocking me.

  • Steps to reproduce
    Run any CI/CD job through GitHub Actions with slack notifications enabled and you will get either an email and/or a slack notification when the CI run is finished and the Sonar action has deleted and added a new comment.

  • Potential workaround
    None that I have been able to find as of yet.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

1 Like

We currently get a comment for each CI run, which is very annoying.

Hello @estahn ,

Are both comments still there after refreshing the page?