Sonarcloud Github integration

Hello,

We are trying to setup Github integration for Sonarcloud so that the code scan occurs on triggers such as when the code is merged back to the Develop branch.
In our case, once the PR request is closed, it gets merged to the Develop branch.

Was reading through the article, SonarCloud Scan · Actions · GitHub Marketplace and it does provide information on setting up triggers for scan.
Can we set the trigger to act when the code is merged back to the Develop branch?

Thanks

Hey there.

You would just add a branch to the trigger:

on:
  # Trigger analysis when pushing in master or pull requests, and when creating
  # a pull request.
  push:
    branches:
      - develop

Awesome, thanks! we will test it out.