Closed ershad-paladin closed 1 month ago
This change enhances the AssetTypeGroupedVulnerabilitiesRule
class to handle lists of CVE IDs within vulnerability information by incorporating JsonArray
from com.google.gson
. This update allows the class to process grouped CVEs, enabling more effective handling and representation of multiple CVE IDs associated with a single vulnerability.
Files | Change Summary |
---|---|
jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/awsrules/ec2/AssetTypeGroupedVulnerabilitiesRule.java |
- Added import for JsonArray from com.google.gson - Updated method getVMVulnerabilityDetails to handle and group multiple CVE IDs |
sequenceDiagram
participant AWSAsset as AWS Asset
participant AssetTypeGroupedVulnerabilitiesRule as AssetTypeGroupedVulnerabilitiesRule
participant VulnerabilityService as Vulnerability Service
AWSAsset->>AssetTypeGroupedVulnerabilitiesRule: Check Vulnerabilities
AssetTypeGroupedVulnerabilitiesRule->>VulnerabilityService: Fetch Vulnerability Data
VulnerabilityService-->>AssetTypeGroupedVulnerabilitiesRule: Return CVE Data (with lists)
AssetTypeGroupedVulnerabilitiesRule->>AWSAsset: Return Grouped CVE Data
In the code a new array, Grouping CVEs in a tidy way, Json import, list is made, Vulnerabilities, clear display. Bugs, beware, and run away, For in this code, no flaw will stay! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Description
Problem
Solution
Fixes # (issue if any)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
Other Information:
List any documentation updates that are needed for the Wiki
Summary by CodeRabbit
New Features
Improvements