Skip to content

Fix pkcs7#5106

Merged
AmrNJ merged 2 commits intomainfrom
fix_pkcs7
Feb 19, 2026
Merged

Fix pkcs7#5106
AmrNJ merged 2 commits intomainfrom
fix_pkcs7

Conversation

@morrowc
Copy link
Contributor

@morrowc morrowc commented Feb 19, 2026

Addressing Amritha's question/suggestion.

@morrowc morrowc requested review from a team as code owners February 19, 2026 07:55
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @morrowc, 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!

This pull request updates the project's dependency on the pkcs7 cryptographic library. The change involves migrating from the go.mozilla.org implementation to one provided by github.com/avast/apkverifier/fullsailor. This update addresses a previous suggestion or issue, ensuring the project uses the intended pkcs7 functionality.

Highlights

  • PKCS7 Library Update: The project's dependency on the pkcs7 cryptographic library has been switched from go.mozilla.org/pkcs7 to github.com/avast/apkverifier/fullsailor/pkcs7.
  • Dependency Management: The go.mod and go.sum files were updated to reflect the new pkcs7 dependency and its corresponding checksums.
Changelog
  • feature/gnsi/certz/tests/internal/setup_service/setup_service.go
    • Changed the import path for the pkcs7 package.
  • go.mod
    • Replaced the go.mozilla.org/pkcs7 dependency with github.com/avast/apkverifier.
  • go.sum
    • Added new checksum entries for github.com/avast/apkverifier.
    • Removed checksum entries for go.mozilla.org/pkcs7.
Activity
  • The pull request was created to address a question or suggestion from "Amritha."
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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.

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.

@OpenConfigBot
Copy link

Pull Request Functional Test Report for #5106 / 5c607b3

No tests identified for validation.

Help

Copy link
Contributor

@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 updates the PKCS#7 parsing library from an archived Mozilla package to one from Avast. While this is a good move to a more maintained library, there's a critical issue in go.mod where the new dependency has an invalid pseudo-version with a future timestamp. This will likely break builds and needs to be corrected. Additionally, there's a minor style issue in setup_service.go where a redundant import alias is used.

github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/aristanetworks/arista-ceoslab-operator/v2 v2.1.2 // indirect
github.com/avast/apkverifier v0.0.0-20251022140917-74acdc5f8b3f // indirect
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The pseudo-version for github.com/avast/apkverifier appears to be invalid. The timestamp 20251022 is in the future, which can cause issues with dependency resolution and build reproducibility. Please use a valid version or commit hash for this dependency. For example, you can run go get github.com/avast/apkverifier/fullsailor/pkcs7@<commit-hash> to get a valid pseudo-version.


"go.mozilla.org/pkcs7"

pkcs7 "github.com/avast/apkverifier/fullsailor/pkcs7"
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The import alias pkcs7 is redundant because the imported package name is also pkcs7. According to Go best practices, explicit aliases should only be used when necessary to avoid name collisions or to use a different, more convenient name. In this case, the alias can be removed for better clarity.

Suggested change
pkcs7 "github.com/avast/apkverifier/fullsailor/pkcs7"
"github.com/avast/apkverifier/fullsailor/pkcs7"
References
  1. The Go style guides referenced in the contribution guidelines (Effective Go, Go Code Review Comments) recommend using import aliases only when necessary to avoid name collisions or for clarity. The alias pkcs7 is redundant as it's the same as the package name and should be removed. (link)

@AmrNJ AmrNJ merged commit f5ba105 into main Feb 19, 2026
17 of 18 checks passed
@AmrNJ AmrNJ deleted the fix_pkcs7 branch February 19, 2026 09:06
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.

4 participants

Comments