Skip to content

Add SonarQube analysis - #25

Merged
PANiXiDA merged 3 commits into
developmentfrom
feature/sonarqube-analysis
Aug 23, 2026
Merged

Add SonarQube analysis#25
PANiXiDA merged 3 commits into
developmentfrom
feature/sonarqube-analysis

Conversation

@PANiXiDA

@PANiXiDA PANiXiDA commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Что изменено

  • добавлен SonarQube analysis job после общего test workflow;
  • job использует общий dotnet-sonar.yml@main;
  • объединённый coverage report передаётся в Sonar без повторного запуска тестов;
  • build-api и build-migrator теперь зависят от успешного sonar и не публикуют release images при провале анализа или Quality Gate;
  • Testcontainers и Testcontainers.PostgreSql обновлены с 4.12.0 до 4.14.0 для устранения транзитивной уязвимости SSH.NET.

Зачем

Подключить репозиторий к централизованному SonarQube-анализу и сделать Quality Gate обязательным условием публикации release-артефактов.

Проверка

  • actionlint .github/workflows/ci.yml;
  • дождаться успешных tests, затем проверить sonar и Quality Gate в PR;
  • на push в main или development убедиться, что image jobs запускаются только после успешного sonar.

Миграций, изменений публичных контрактов и breaking changes нет. Изменена конфигурация GitHub Actions; новые secrets или variables не требуются.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 006be3327b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
registry-token: ${{ secrets.REGISTRY_TOKEN }}

sonar:
needs: tests

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate image builds on the Sonar result

On pushes to main or development, when SonarQube or its Quality Gate fails, this dependency only orders sonar after tests; build-api and build-migrator still depend directly on tests, so they can publish both images and allow notify to run without waiting for the failed analysis. Add sonar to the build dependency chain so the new quality gate actually blocks release artifacts.

AGENTS.md reference: .github/workflows/AGENTS.md:L1-L1

Useful? React with 👍 / 👎.

@PANiXiDA

Copy link
Copy Markdown
Contributor Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: e635aeee5d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@PANiXiDA
PANiXiDA merged commit 802c036 into development Aug 23, 2026
19 checks passed
@PANiXiDA
PANiXiDA deleted the feature/sonarqube-analysis branch August 23, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants