name: SonarCloud on: push: branches: [main] pull_request: types: [opened, synchronize, reopened] workflow_dispatch: permissions: contents: read concurrency: group: sonarcloud-${{ github.ref }} # A push to main is the run that publishes coverage; superseded runs there would never finish. cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: sonarcloud: # Tracked at @ci/harden-runner so org-wide CI improvements propagate without PR churn. uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@ci/harden-runner secrets: inherit