diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdbfa64..69537f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@main with: project-key: ${{ vars.SONAR_PROJECT_KEY }} + project-version-file: version.json secrets: sonar-token: ${{ secrets.SONAR_TOKEN }} registry-user: ${{ secrets.REGISTRY_USER }} diff --git a/README.md b/README.md index 65f94f9..31a2837 100644 --- a/README.md +++ b/README.md @@ -315,3 +315,11 @@ When changing the package: This project is licensed under the Apache-2.0 license. See [LICENSE](LICENSE) for details. + +## SonarQube new code + +The SonarQube project uses `Previous version`. CI passes the stable `version` +field from the root `version.json` via `project-version-file: version.json`. +Increment that version when starting the next development cycle. Computed NuGet +build versions do not move the new-code baseline on every build. Pull requests +are analyzed against their target branch independently of this version period.