Skip to content

SONARJAVA-6296 Configure Renovate#5587

Merged
tomasz-tylenda-sonarsource merged 4 commits intomasterfrom
renovate/configure
May 6, 2026
Merged

SONARJAVA-6296 Configure Renovate#5587
tomasz-tylenda-sonarsource merged 4 commits intomasterfrom
renovate/configure

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 29, 2026

Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

📚 See our Reading List for relevant documentation you may be interested in reading.

🔡 Do you want to change how Renovate upgrades your dependencies? Add your custom config to renovate.json in this branch. Renovate will update the Pull Request description the next time it runs.


Detected Package Files

  • .github/actions/orchestrator-cache/action.yml (github-actions)
  • .github/actions/upload-actual/action.yml (github-actions)
  • .github/workflows/PrepareNextIteration.yml (github-actions)
  • .github/workflows/PullRequestClosed.yml (github-actions)
  • .github/workflows/PullRequestCreated.yml (github-actions)
  • .github/workflows/ReleasabilityCheck.yml (github-actions)
  • .github/workflows/RequestReview.yml (github-actions)
  • .github/workflows/SubmitReview.yml (github-actions)
  • .github/workflows/ToggleLockBranch.yml (github-actions)
  • .github/workflows/UpdateRuleMetadata.yml (github-actions)
  • .github/workflows/automated-release.yml (github-actions)
  • .github/workflows/build.yml (github-actions)
  • .github/workflows/cleanup-cache.yml (github-actions)
  • .github/workflows/dogfood.yml (github-actions)
  • .github/workflows/mark-prs-stale.yml (github-actions)
  • .github/workflows/pr-cleanup.yml (github-actions)
  • .github/workflows/releasability.yaml (github-actions)
  • .github/workflows/release.yml (github-actions)
  • .github/workflows/unified-dogfooding.yml (github-actions)
  • check-list/pom.xml (maven)
  • external-reports/pom.xml (maven)
  • its/autoscan/pom.xml (maven)
  • its/plugin/plugins/java-extension-plugin/pom.xml (maven)
  • its/plugin/plugins/pom.xml (maven)
  • its/plugin/pom.xml (maven)
  • its/plugin/tests/pom.xml (maven)
  • its/pom.xml (maven)
  • its/ruling/pom.xml (maven)
  • its/vibebot/pom.xml (maven)
  • java-checks-aws/pom.xml (maven)
  • java-checks-common/pom.xml (maven)
  • java-checks-testkit/pom.xml (maven)
  • java-checks/pom.xml (maven)
  • java-frontend/pom.xml (maven)
  • java-jsp/pom.xml (maven)
  • java-surefire/pom.xml (maven)
  • pom.xml (maven)
  • sonar-java-plugin/pom.xml (maven)
  • .github/workflows/PrepareNextIteration.yml (regex)
  • .github/workflows/build.yml (regex)
  • .github/workflows/unified-dogfooding.yml (regex)

Configuration Summary

Based on the default config's presets, Renovate will:

  • Start dependency updates only once this onboarding PR is merged
  • Hopefully safe environment variables to allow users to configure.
  • Show all Merge Confidence badges for pull requests.
  • Enable Renovate Dependency Dashboard creation.
  • Use semantic commit type fix for dependencies and chore for all others if semantic commits are in use.
  • Ignore node_modules, bower_components, vendor and various test/tests (except for nuget) directories.
  • Group known monorepo packages together.
  • Use curated list of recommended non-monorepo package groupings.
  • Show only the Age and Confidence Merge Confidence badges for pull requests.
  • Apply crowd-sourced package replacement rules.
  • Apply crowd-sourced workarounds for known problems with packages.
  • Ensure that every dependency pinned by digest and sourced from Forgejo contains a link to the commit-to-commit diff
  • Ensure that every dependency pinned by digest and sourced from Gitea contains a link to the commit-to-commit diff
  • Ensure that every dependency pinned by digest and sourced from GitHub.com and Github enterprise contains a link to the commit-to-commit diff
  • Ensure that every dependency pinned by digest and sourced from GitLab.com contains a link to the commit-to-commit diff
  • Correctly link to the source code for golang.org/x packages
  • Link to pkg.go.dev/... for golang.org/x packages' title
  • Evaluate schedules according to timezone CET.
  • Remove hourly and concurrent rate limits.
  • Run Renovate on following schedule: before 6am on Monday

What to Expect

With your current configuration, Renovate will create 9 Pull Requests:

Update dependency org.springframework:spring-webmvc to v6 [SECURITY]
Update GitHub Actions dependencies
Update Analyzer Commons to v2.22.0.4796
Update Maven dependencies
Update Sonar dependencies
Update SSLR to v1.25.1.3886
Update GitHub Actions dependencies (major)
  • Schedule: ["before 6am on Monday"]
  • Branch name: renovate/major-github-actions-dependencies
  • Merge into: master
  • Upgrade actions/checkout to de0fac2e4500dabe0009e67214ff5f5447ce83dd
  • Upgrade actions/stale to b5d41d4e1d5dceea10e7104786b73624c18a190f
  • Upgrade actions/upload-artifact to 043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
  • Upgrade slackapi/slack-github-action to 03ea5433c137af7c0495bc0cad1af10403fc800c
Update Maven dependencies (major)
Update Sonar dependencies (major)

❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section.
If you need any further assistance then you can also request help here.


This PR was generated by Mend Renovate. View the repository job log.

@hashicorp-vault-sonar-prod
Copy link
Copy Markdown
Contributor

hashicorp-vault-sonar-prod Bot commented Apr 29, 2026

Renovate Jira issue ID: SONARJAVA-6295

@sonar-review-alpha
Copy link
Copy Markdown
Contributor

sonar-review-alpha Bot commented Apr 29, 2026

Summary

⚠️ The PR description exceeded the analysis limit and was truncated. The review may not reflect all context.

This PR adds the Renovate configuration file (renovate.json5) for the sonar-java repository. It extends SonarSource's standard JVM squad configuration and applies two key customizations:

  1. Path exclusions — skips dependency updates for documentation, test fixtures, and test resources that are intentionally pinned at specific versions
  2. Custom package rules — groups SSLR packages together and disables major version updates for SLF4J (since those changes can create incompatibilities the team prefers to manage manually)

Once merged, Renovate will begin creating dependency update PRs on a schedule (before 6am Monday) for the Maven and GitHub Actions dependencies detected across the repository.

What reviewers should know

For reviewers:

  • Single file change — the only modification is the new renovate.json5 configuration file, which is straightforward to review
  • Verify the ignored paths — check that the listed paths in ignorePaths correctly exclude test fixtures and documentation that shouldn't receive automated updates
  • Review package rules — confirm the SLF4J rule (disabling major version updates) aligns with the team's maintenance strategy; same for the SSLR grouping
  • Configuration inheritance — the config extends github>SonarSource/renovate-config:quality-jvm-squad, so familiarity with that base config helps understand what defaults are in place
  • Expected outcome — the author's description lists 9 initial PRs that will be created; this is normal for onboarding and gives you a preview of what to expect after merge

  • Generate Walkthrough
  • Generate Diagram

🗣️ Give feedback

sonar-review-alpha[bot]

This comment was marked as outdated.

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource changed the title Configure Renovate SONARJAVA-6296 Configure Renovate Apr 29, 2026
sonar-review-alpha[bot]

This comment was marked as resolved.

sonar-review-alpha[bot]

This comment was marked as outdated.

sonar-review-alpha[bot]

This comment was marked as resolved.

sonar-review-alpha[bot]

This comment was marked as outdated.

sonar-review-alpha[bot]

This comment was marked as outdated.

sonar-review-alpha[bot]

This comment was marked as outdated.

@sonarqube-next
Copy link
Copy Markdown

sonarqube-next Bot commented May 5, 2026

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
0 Dependency risks
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Copy Markdown
Contributor

@sonar-review-alpha sonar-review-alpha Bot left a comment

Choose a reason for hiding this comment

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

One real bug in the SSLR package rule that will cause silent misconfiguration — the grouping will never apply.

🗣️ Give feedback

Comment thread renovate.json5
packageRules: [
{
matchPackageNames: [
"org.sonarsource.sslr*"
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.

The pattern org.sonarsource.sslr* will not match the actual Maven artifacts in this repo.

In Renovate, Maven package names are represented as groupId:artifactId (e.g. org.sonarsource.sslr:sslr-core, org.sonarsource.sslr:sslr-testing-harness). A bare * does not span the : separator — the SLF4J rule in this same file proves this: it uses org.slf4j:** with an explicit :** to match across the colon. Without that, the SSLR grouping rule will silently never match anything, and SSLR updates will arrive as individual PRs rather than grouped.

Suggested change
"org.sonarsource.sslr*"
"org.sonarsource.sslr:**"
  • Mark as noise

Copy link
Copy Markdown
Contributor

@rombirli rombirli left a comment

Choose a reason for hiding this comment

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

LGTM

@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource merged commit 86e32f1 into master May 6, 2026
28 of 29 checks passed
@tomasz-tylenda-sonarsource tomasz-tylenda-sonarsource deleted the renovate/configure branch May 6, 2026 08:46
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