Skip to content

fix: Upgrade SonarQube Scanner to v6.1.0.4477 - #605

Merged
akgarg06 merged 1 commit into
developfrom
RBSDMS-sonar-fix-feature
Nov 3, 2026
Merged

akgarg06 merged 1 commit into
developfrom
RBSDMS-sonar-fix-feature

Conversation

@akgarg06

@akgarg06 akgarg06 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes

  • The SonarQube workflow was failing because Java 17 is no longer available on GitHub Actions runners
  • Upgraded SonarQube Scanner CLI from 5.0.1.3006 to 6.1.0.4477 (v6.x requires Java 17+, so aligning with JDK 21)
  • Extracted the scanner version into a top-level env variable (SONAR_SCANNER_VERSION) to avoid hardcoding
  • Updated download URL and directory references to use the -linux-x64 suffix required by the v6.x artifact naming convention (v5.x used -linux)

Changes

.github/workflows/sonarqube.yml

  • Updated JDK version from 17 → 21
  • Added env.SONAR_SCANNER_VERSION: '6.1.0.4477' at workflow level
  • Updated curl download URL from -linux.zip → -linux-x64.zip
  • Updated mv target directory from -linux → -linux-x64

Why

GitHub Actions deprecated Java 17 from its runner images. The workflow was using java-version: '17' which caused the build and SonarQube analysis steps to fail. Upgrading to JDK 21 (LTS) restores the workflow. The scanner was also bumped to v6.1.0.4477 to stay current, which required updating the artifact naming convention from -linux to -linux-x64.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist before requesting a review

  • I follow Java Development Guidelines for SAP
  • I have tested the functionality on my cloud environment.
  • I have provided sufficient automated/ unit tests for the code.
  • I have increased or maintained the test coverage.
  • I have ran integration tests on my cloud environment.
  • I have validated blackduck portal for any vulnerability after my commit.

@akgarg06
akgarg06 deployed to pr-analysis November 2, 2026 12:11 — with GitHub Actions Active
@akgarg06
akgarg06 deployed to pr-analysis November 2, 2026 12:11 — with GitHub Actions Active
@akgarg06 akgarg06 changed the title Update sonarqube.yml fix: Upgrade SonarQube Scanner to v6.1.0.4477 Nov 2, 2026

@PujaDeshmukh17 PujaDeshmukh17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@akgarg06
akgarg06 merged commit 44ad6a1 into develop Nov 3, 2026
9 checks passed
@akgarg06
akgarg06 deleted the RBSDMS-sonar-fix-feature branch November 3, 2026 04:42

This branch was successfully deployed

1 active deployment
pr-analysis — 5161c04e Deployed Nov 2, 2026 by akgarg06 via sonar-scan #2294
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