Github App Suddenly Not Decorating PRs with Result Summaries

Template for a good new topic, formatted with Markdown:

  • Github
  • Github Actions
  • sonarcloud-github-action, pinned to the 1.6 release
  • JS, PHP
  • Private repositories
  • No error, just a lack of a PR comment after analysis successfully finishes in SonarCloud (per the results being there in the SonarCloud UI)
  • Create a PR in one of the affected repositories
  • Workarounds: None

This started happening 1-2 weeks ago for us, in both of the repositories we have the Github App turned on in. We went through and evaluated all the settings we were aware of in the SonarCloud UI and nothing seems to have been changed or modified recently either

We have no idea how this happened nor do we know how to troubleshoot it further.

Hey there.

How is your GitHub Actions YAML file configured? Feel free to paste it here.

Sure here is the relevant job from that workflow

    runs-on: ubuntu-latest
    needs: [ js-tests, php-tests ]
      - name: Checkout
        uses: actions/checkout@v2
          fetch-depth: 0

      - name: Download JS Coverage Results
        uses: actions/download-artifact@v2
          name: coverage-js
          path: coverage-js

      - name: Donwload PHP Coverage Results
        uses: actions/download-artifact@v2
          name: coverage-php
          path: coverage-php

      - name: Adjust Coverage Paths
        run: |
          sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage-php/clover.xml
          sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage-js/

      - name: SonarCloud Scan
        uses: sonarsource/sonarcloud-github-action@v1.6
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

And then at the top the event triggers look like


Thanks. You probably want to join the conversation here:

Yup that looks like it should work for us too afaict, thanks!