Sonarcloud stoped posting analysis report in Github PR but still posts them in the actions

Thanks for sharing.

We recently made a change to our Github Actions configuration. When the scanner runs in the context of a push event, it will always configure a branch analysis instead of a PR analysis.

To get PR analysis working again you should add the

on: 
  pull_request

to your configuration instead of

on:
  push:
    branches:
      - 'feature/**'
      - 'renovate/**'
      - 'hotfix/**'

Would that work for you usecase?

You can also make use of the branches parameter of pull_request to stay aligned with your current configuration:

on:
  pull_request:
    branches:
      - 'feature/**'
      - 'renovate/**'
      - 'hotfix/**'
1 Like