name: SonarCloud on: workflow_dispatch: push: branches: [main] pull_request: types: [opened, synchronize, reopened] permissions: contents: read concurrency: group: ${{ github.ref == 'refs/heads/main' && format('sonarcloud-main-{0}', github.sha) || format('sonarcloud-{0}', 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 with: python-coverage-source: .github/scripts python-coverage-script: .github/scripts/tests/test_release_rpm_smoke.py secrets: inherit