Skip to content

Commit

Permalink
Update analyze.py with new json key names (#13)
Browse files Browse the repository at this point in the history
`risk_domain` became `domain` and `risk_level` became `severity`
  • Loading branch information
furi0us333 authored May 20, 2022
1 parent 8406692 commit 0862f79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,11 @@ def build_issues_list(self, package_json, issue_flags: list):

for flag in issue_flags:
for pkg_issue in pkg_issues:
if flag in pkg_issue.get("risk_domain"):
risk_domain = pkg_issue.get("risk_domain")
risk_level = pkg_issue.get("risk_level")
if flag in pkg_issue.get("domain"):
domain = pkg_issue.get("domain")
severity = pkg_issue.get("severity")
title = pkg_issue.get("title")
issues.append((risk_domain, risk_level, title))
issues.append((domain, severity, title))

return issues

Expand Down

0 comments on commit 0862f79

Please sign in to comment.