Ceng 728 add command to return vulnerability results#272
Open
colinmoynes wants to merge 26 commits intomasterfrom
Open
Ceng 728 add command to return vulnerability results#272colinmoynes wants to merge 26 commits intomasterfrom
colinmoynes wants to merge 26 commits intomasterfrom
Conversation
…rity filter as well
…Added rich dependancy to setup.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new cloudsmith vulnerabilities CLI command that fetches and displays vulnerability scan results for a package, including summary/assessment views and filtering options.
Changes:
- Introduces
vulnerabilitiesCLI command plus core API integration for fetching/formatting scan results. - Adds Rich-based table rendering utility and new dependency on
rich. - Updates docs/changelog and adds CLI command tests.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| setup.py | Adds rich to runtime dependencies. |
| README.md | Documents the new vulnerabilities command in the CLI command list. |
| cloudsmith_cli/core/api/vulnerabilities.py | Implements vulnerability scan fetching, filtering, and table output logic. |
| cloudsmith_cli/cli/utils.py | Adds rich_print_table helper and Rich imports. |
| cloudsmith_cli/cli/tests/commands/test_vulnerabilities.py | Adds tests for the new CLI command argument/option handling. |
| cloudsmith_cli/cli/commands/vulnerabilities.py | Adds the new CLI command wiring/options/help text. |
| cloudsmith_cli/cli/commands/init.py | Registers the new command module for CLI import side-effects. |
| CHANGELOG.md | Adds release notes for the new vulnerabilities command. |
| .envrc | Tweaks uv venv creation and installs dev dependencies from requirements.in. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Description
vulnerabilities(-vuln) command to a retrieve security scan results against a package--show-assessment(-A): Provides a detailed breakdown where vulnerabilities are:--severityShow only specific levels (e.g., just Critical and High).--fixable | --non-fixableFilter to show only "Fixable" vulnerabilities (where a patch exists) or "Non-Fixable" ones.--output-format json | pretty_jsonfor programmatic usageGeneral changes:
rich_print_table()function added to utils.py.Type of Change
Additional Notes