Skip to content

PREQ-10979 Update outdated scanners - #393

Merged
hedinasr merged 2 commits into
masterfrom
db/update-scanners
Dec 3, 2026
Merged

hedinasr merged 2 commits into
masterfrom
db/update-scanners

Conversation

@dorian-burihabwa-sonarsource

@dorian-burihabwa-sonarsource dorian-burihabwa-sonarsource commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary by Gitar

  • Dependency updates:
    • Bumped the default SCANNER_VERSION from 5.6.0.6792 to 5.9.0.7382 in build-maven/build.sh, including its doc comment
    • Bumped the default SQ_SCANNER_VERSION from 4.3.0 to 5.1.0 in build-npm/build.sh and build-yarn/build.sh
  • Test updates:
    • Updated spec/build-maven_spec.sh expectations to match the new sonar-maven-plugin version

This will update automatically on new commits.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Update outdated scanners PREQ-10979 Update outdated scanners Dec 2, 2026
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PREQ-10979

Comment thread build-npm/build.sh Resolved
@datadog-sonarsource

This comment has been minimized.

@hedinasr hedinasr 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: the new defaults match the latest releases (sonar-scanner-maven 5.9.0.7382, @sonar/scan 5.1.0).

Before merging:

  • Please fix Gitar's open finding: the build-npm and build-yarn README tables still list SQ_SCANNER_VERSION as '4.3.0'.
  • @sonar/scan 4 → 5 is a major version for every repo using the default, so it's worth calling out in the release notes.

@hedinasr
hedinasr enabled auto-merge (squash) December 3, 2026 14:56
@dorian-burihabwa-sonarsource

Copy link
Copy Markdown
Contributor Author

gitar review

@gitar-bot

gitar-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Updating default SonarScanner versions for Maven, npm, and Yarn could alter analysis behavior or expose compatibility issues in CI builds.

Bumps the SonarScanner for NPM to 5.1.0 and the SonarScanner for Maven to 5.9.0 to update outdated scanner versions. The README's documented SQ_SCANNER_VERSION default of '4.3.0' has been corrected, so the docs now match the updated scanner.

✅ 1 closed
✅ Quality: README still documents SQ_SCANNER_VERSION default as '4.3.0'

📄 build-npm/build.sh:35 📄 build-npm/build.sh:51 📄 build-yarn/build.sh:51
This commit changes the SQ_SCANNER_VERSION default from 4.3.0 to 5.1.0 in build-npm/build.sh and build-yarn/build.sh, and updates the header comment in build-npm. The README environment-variable tables for the build-npm and build-yarn actions still list the default as '4.3.0'. Anyone reading the README will think the actions run scanner 4.x, but they now use @sonar/scan@5.1.0. To fix it, change both README rows to '5.1.0'.

Verification

Functional validation No results

Rules 6 not applicable

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@hedinasr
hedinasr merged commit d753073 into master Dec 3, 2026
19 checks passed
@hedinasr
hedinasr deleted the db/update-scanners branch December 3, 2026 15:58
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