Rpm improvments#251
Merged
Merged
Conversation
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
zvigrinberg
requested changes
Jun 23, 2026
zvigrinberg
left a comment
Collaborator
There was a problem hiding this comment.
@RedTanny This work looks great.
Please see my comments. ( most are minors).
Thanks.
zvigrinberg
approved these changes
Jun 23, 2026
zvigrinberg
left a comment
Collaborator
There was a problem hiding this comment.
@RedTanny LGTM Approved.
Great job as usual.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Commit Discovery Pipeline - a 4-phase enhancement that extracts fix commit information from upstream repositories when no downstream patch is available. This enables better vulnerability analysis by discovering the actual fix code from advisory references.
Key Features
New Capabilities
1. OSIDB Integration
rpm_user_type: internalconfig (requires VPN)2. Reference Mining Node
Extracts structured hints from advisory URLs when no patch is found:
Uses LLM-powered extraction with reflection loop for quality validation.
3. Repository Resolution Node
Maps package name → upstream git repository URL using:
package_repo_mapping.json)Supports 100+ C/C++ packages with alias mapping (httpd → apache, etc.)
4. Git Search Node
Searches upstream repos for fix commits:
revision- Direct SVN/git revision lookup (95% confidence)function- Function name in commit message (75% confidence)ParsedPatchfor L1 agent5. Report Display
Git search results now appear in "Fix clues from advisories and reference builds" section showing:
Files Changed
git_commit_searcher.py,git_repo_manager.py,repo_resolver.py,reference_fetcher.py,reference_parser.py,osidb_client.pycode_agent_graph_defs.py,checker_status.py,cve_intel.pycve_package_code_agent.py(+667 lines)cve_checker_report.pyintel_retriever.py,intel_utils.py,cve_fetch_intel.pytest_git_commit_searcher.py(33 tests),test_repo_resolver.py(40 tests)package_repo_mapping.json(100+ packages)