name: SonarCloud on: push: branches: [main] pull_request: types: [opened, synchronize, reopened] 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 @main so org-wide CI improvements propagate without PR churn. # The reusable workflow defaults build-jobs to 2 so a cold instrumented # archive stays within hosted-runner memory (craft-common-actions#333). uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main secrets: inherit