Skip to content

Commit

Permalink
Add print cvssDetails to example
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya-nobuta authored and garethr committed Jan 13, 2024
1 parent 6c55980 commit 29b5c06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/api-demo-2c-list-issues-aggregated.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def output_excel(vulns, output_path):
print(" Severity: %s" % v.issueData.severity)
print(" CVSS Score: %s" % v.issueData.cvssScore)

# print CVSS assigners if exists
for detail in v.issueData.cvssDetails:
print(" %s score: %s" % (detail['assigner'], detail['cvssV3BaseScore']))

# for the excel output
new_output_item = {
"title": v.issueData.title,
Expand Down

0 comments on commit 29b5c06

Please sign in to comment.