Don't abort scan on 'pull_request.synchronize' events

  • SCM: GitHub
  • CI: Github Actions

Attempt to run action on pull_request.synchronize fails intentionally, as script assumes this is also run on the push event, which is not the case (https://github.com/SonarSource/sonarcloud-github-action/blob/master/entrypoint.sh#L20-L26). We want this to be run on pull_request.synchronize only, so we can avoid running sonar on branches without PRs and PRs in draft mode.

Please consider making this check optional.

These type of checks can/should be left to the developer than can code on the Github Actions workflow using [steps].if:.