Conversation
There was a problem hiding this comment.
Pull request overview
This PR simplifies the vulnerability summary outputs by removing the package format attribute (e.g., deb, rpm) from both the CLI table view and the JSON report, and updates the related documentation examples accordingly.
Changes:
- Removed
formatfrom each package entry in the JSON output structure. - Removed the
Formatcolumn from the Rich table output in the CLI. - Updated
Scripts/Vulnerabilities/README.mdexample outputs to reflect the new table/JSON shape.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Scripts/Vulnerabilities/repo-vuln-summary.py | Drops format from the generated report payload and CLI table rendering. |
| Scripts/Vulnerabilities/README.md | Updates example table and JSON output to match the new schema (with one remaining mismatch noted in comments). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -80,14 +80,14 @@ python repo-vuln-summary.py --owner <org-slug> --repo <repo-slug> --output json | |||
| ✓ Processed 7 vulnerability scans in 4.2s | |||
|
|
|||
| Cloudsmith Repository Vulnerability Overview: my-repo | |||
There was a problem hiding this comment.
The table example title in this README doesn't match the actual CLI output. The script prints a Rich table titled Vulnerability Report: {repo} (see Table(title=...) in repo-vuln-summary.py), but the example shows Cloudsmith Repository Vulnerability Overview: my-repo. Please update the example title (or the code) so the documented output matches what the tool renders.
| Cloudsmith Repository Vulnerability Overview: my-repo | |
| Vulnerability Report: my-repo |
This pull request simplifies the vulnerability summary output by removing the
formatfield (e.g., package type likedeb,rpm, etc.) from both the table and the JSON output. This change affects the display in the CLI, the structure of the JSON report, and the corresponding documentation.Summary of most important changes:
Table and Output Display:
Formatcolumn from the summary table in the CLI output, making the table less cluttered and easier to read. [1] [2] [3]JSON Output and Data Structure:
formatfield from the JSON output for each package, simplifying the data structure. [1] [2]Documentation:
README.mdto reflect the removal of theFormatcolumn and field. [1] [2]## 📄 SummaryBriefly describe the purpose of this pull request. What problem does it solve or feature does it add?
🔍 Related Issues
Link to any related GitHub issues (e.g.,
Fixes #12,Closes #34):🧪 Type of Change
Please check the relevant type tag for this PR title:
[FIX]Bug fix[NEW]New thing[REFACTOR]Internal changes such as code restructuring or optimization that does not alter functionality[DOC]Documentation-only changes[CHORE]Maintenance, cleanup, or CI configuration🧪 How Has This Been Tested?
Describe how you tested your changes. Include CI runs, local tests, manual verification, or screenshots if applicable.
📸 Screenshots (if applicable)
If UI or logs are affected, include before/after screenshots or output.
✅ Checklist