Skip to content

Comments

Bump protobuf-java to 3.25.7#2219

Merged
ihrasko merged 1 commit intoPANTHEONtech:20.xfrom
Tobianas:20.x_snyk-upgrade-c746b772f7e933e9f9106167c8b4304d
May 22, 2025
Merged

Bump protobuf-java to 3.25.7#2219
ihrasko merged 1 commit intoPANTHEONtech:20.xfrom
Tobianas:20.x_snyk-upgrade-c746b772f7e933e9f9106167c8b4304d

Conversation

@Tobianas
Copy link
Contributor

Snyk has created this PR to upgrade com.google.protobuf:protobuf-java from 3.25.6 to 3.25.7.

https://github.com/protocolbuffers/protobuf/releases/tag/v3.25.7

(cherry picked from commit 89f6772)

Snyk has created this PR to upgrade com.google.protobuf:protobuf-java
from 3.25.6 to 3.25.7.

https://github.com/protocolbuffers/protobuf/releases/tag/v3.25.7
Signed-off-by: tobias.pobocik <[email protected]>
(cherry picked from commit 89f6772)
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Hello @Tobianas, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello! Gemini or gemini-code-assist here, providing a summary of this pull request. The primary goal of this PR, as indicated by the title and description, is to upgrade the protobuf-java dependency from version 3.25.6 to 3.25.7. This update was initiated by Snyk and appears to be a cherry-picked commit from the upstream protobuf repository's release tag.

Highlights

  • Dependency Upgrade: The core change is the update of the protobuf-java dependency version.
  • Automated Update: This PR was automatically created by Snyk to address a potential vulnerability or recommend an update.

Changelog

  • lighty-modules/lighty-gnmi/lighty-gnmi-proto/pom.xml
    • Updated the <protobuf.version> property from 3.25.6 to 3.25.7.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Version bumps arrive,
From six point six to seven,
Dependencies grow.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly bumps the protobuf-java version from 3.25.6 to 3.25.7 in the lighty-gnmi-proto module. According to the release notes for protobuf v3.25.7, this update addresses CVE-2024-24790, which is a valuable security improvement.

The change itself is clear, minimal, and correctly applied to the <protobuf.version> property. This is a good example of proactive dependency management to enhance security.

Well done on addressing this vulnerability!

Summary of Findings

  • Centralized Dependency Version Management for Protobuf: While this PR correctly updates protobuf-java locally within the lighty-gnmi-proto/pom.xml by modifying the <protobuf.version> property, it's a general best practice to manage versions of common dependencies centrally. For future consideration, if com.google.protobuf:protobuf-java and com.google.protobuf:protobuf-java-util are used (or anticipated to be used) across multiple modules, managing their versions in the <dependencyManagement> section of a shared parent POM (like lighty-core/dependency-versions/pom.xml) could enhance maintainability and ensure version consistency across the project. This would typically involve defining the version in the central POM and allowing individual modules to inherit it, removing the local <protobuf.version> property. This is a low-severity suggestion for potential future improvement. As per review settings, direct comments are focused on medium or higher severity issues, so this is noted here instead.

Merge Readiness

This pull request implements a necessary security update by bumping the protobuf-java version. The change is correct, well-targeted, and improves the security posture of the project. Given that it addresses a CVE, merging it is recommended.

As an AI reviewer, I am not authorized to approve pull requests. Please ensure this change undergoes the standard human review and approval process before merging.

@ihrasko ihrasko merged commit a5fe627 into PANTHEONtech:20.x May 22, 2025
5 of 6 checks passed
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