From 03d3200018372156140bd7d51e9249dbafc657cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Sat, 10 Oct 2026 23:40:13 +0400 Subject: [PATCH 1/4] ci: pass stable project version to SonarQube --- .github/workflows/ci.yml | 1 + README.md | 8 ++++++++ 2 files changed, 9 insertions(+) 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. From 6beec086a0703dda7d2770ccc825fd556dce17b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Sat, 10 Oct 2026 23:47:38 +0400 Subject: [PATCH 2/4] ci: validate with the pending shared Sonar workflow --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69537f6..02b4651 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,14 @@ jobs: registry-token: ${{ secrets.REGISTRY_TOKEN }} tests: - uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-tests.yml@main + uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-tests.yml@ed001afd3e455053421c62a3b9e9e8ffd1f4ea9b secrets: registry-user: ${{ secrets.REGISTRY_USER }} registry-token: ${{ secrets.REGISTRY_TOKEN }} sonar: needs: tests - uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@main + uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@ed001afd3e455053421c62a3b9e9e8ffd1f4ea9b with: project-key: ${{ vars.SONAR_PROJECT_KEY }} project-version-file: version.json From 5ef765832825a9d66aef5b7ac3f9a14452af1603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Sat, 10 Oct 2026 23:53:01 +0400 Subject: [PATCH 3/4] ci: verify final Sonar flow while preserving merge tests --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02b4651..979e061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,14 @@ jobs: registry-token: ${{ secrets.REGISTRY_TOKEN }} tests: - uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-tests.yml@ed001afd3e455053421c62a3b9e9e8ffd1f4ea9b + uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-tests.yml@main secrets: registry-user: ${{ secrets.REGISTRY_USER }} registry-token: ${{ secrets.REGISTRY_TOKEN }} sonar: needs: tests - uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@ed001afd3e455053421c62a3b9e9e8ffd1f4ea9b + uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@5610bff41c45f2cac47dff2cd6c2219c012048c4 with: project-key: ${{ vars.SONAR_PROJECT_KEY }} project-version-file: version.json From 8a6d50ce6c0dc7072237b6365696c1722396349e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Sun, 11 Oct 2026 09:08:53 +0400 Subject: [PATCH 4/4] Use shared workflow main after successful preview --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 979e061..69537f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: sonar: needs: tests - uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@5610bff41c45f2cac47dff2cd6c2219c012048c4 + uses: PANiXiDA-Infrastructure/ci-cd/.github/workflows/dotnet-sonar.yml@main with: project-key: ${{ vars.SONAR_PROJECT_KEY }} project-version-file: version.json