SonarCloud analysis works well on PRs, but not when the CI is run on the main branch (after a PR has been merged).
This is because the .github/workflows/analysis.yaml workflow runs the moon query touched-files | moon query projects --affected --tags scodi --json command, which has no effect when ran on the main branch.
SonarCloud analysis works well on PRs, but not when the CI is run on the main branch (after a PR has been merged).
This is because the .github/workflows/analysis.yaml workflow runs the
moon query touched-files | moon query projects --affected --tags scodi --json
command, which has no effect when ran on themain
branch.