Skip to content

mesh-2925: fix sonar - #268

Merged
james-bradley-nhs merged 2 commits into
developfrom
mesh-2925-fix-sonar
Jul 29, 2026
Merged

mesh-2925: fix sonar#268
james-bradley-nhs merged 2 commits into
developfrom
mesh-2925-fix-sonar

Conversation

@james-bradley-nhs

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

☂️ Code Coverage

current status: ✅

Overall Coverage

Statements Covered Coverage Threshold Status
680 556 82% 70% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 8a56254 by action🐍

Copilot AI 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.

Pull request overview

This PR updates CI Sonar scanning in GitHub Actions workflows by replacing the hand-rolled SonarScanner download/execution steps with the maintained SonarSource/sonarqube-scan-action, and renaming the pre-scan step to “prepare sonar reports”.

Changes:

  • Removed actions/setup-java and manual sonar-scanner-cli provisioning steps from CI workflows.
  • Added a “prepare sonar reports” step and switched Sonar execution to SonarSource/sonarqube-scan-action.
  • Applied the same Sonar workflow changes to both PR and develop-merge pipelines.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/pull-request.yml Switch PR workflow Sonar scanning from manual scanner provisioning to SonarSource scan action; add “prepare sonar reports” step.
.github/workflows/merge-develop.yml Switch develop branch workflow Sonar scanning from manual scanner provisioning to SonarSource scan action; add “prepare sonar reports” step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +59 to 63
- name: prepare sonar reports
if: success() || failure()
run: |
export SONAR_VERSION="5.0.1.3006"
wget -q --max-redirect=0 "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_VERSION}.zip" -O sonar-scanner.zip
unzip -q ./sonar-scanner.zip
mv ./sonar-scanner-${SONAR_VERSION} ./sonar-scanner
cat sonar-project.properties
scripts/sonar_tests.py
Comment on lines +142 to 146
- name: prepare sonar reports
if: success() || failure()
run: |
export SONAR_VERSION="5.0.1.3006"
wget -q --max-redirect=0 "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_VERSION}.zip" -O sonar-scanner.zip
unzip -q ./sonar-scanner.zip
mv ./sonar-scanner-${SONAR_VERSION} ./sonar-scanner
cat sonar-project.properties
scripts/sonar_tests.py
@sonarqubecloud

Copy link
Copy Markdown

@james-bradley-nhs
james-bradley-nhs merged commit 4305852 into develop Jul 29, 2026
38 of 41 checks passed
@james-bradley-nhs
james-bradley-nhs deleted the mesh-2925-fix-sonar branch July 29, 2026 10:29
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.

3 participants