We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2045f3b commit 338e374Copy full SHA for 338e374
cloudsmith_cli/cli/commands/vulnerabilities.py
@@ -321,7 +321,16 @@ def vulnerabilities(
321
)
322
return
323
324
- if utils.maybe_print_as_json(opts, repo_summary_rows):
+ json_output = {
325
+ "owner": owner,
326
+ "repository": repo,
327
+ "packages": [
328
+ {"package": label, "vulnerabilities": counts}
329
+ for label, counts in repo_summary_rows
330
+ ],
331
+ }
332
+
333
+ if utils.maybe_print_as_json(opts, json_output):
334
335
336
_print_repo_summary_table(repo_summary_rows, severity_filter)
0 commit comments