Skip to content

Commit

Permalink
🚧 not finished yet
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Feb 19, 2024
1 parent a725596 commit f4ae986
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions dojo/tools/osv_scanner/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ def get_description_for_scan_types(self, scan_type):

def get_findings(self, file, test):
data = json.load(file)
findings = list

for result in data["results"]:
source_path = result["source"]["path"]
source_type = result["source"]["type"]
for package in result["packages"]:
package_name = package["package"]["name"]
package_version = package["package"]["version"]
package_ecosystem = package["package"]["ecosystem"]
for vulnerability in package["vulnerabilities"]:
print(len(vulnerability))
findings = list()
finding = Finding(
title="title",
test=test,
Expand All @@ -25,4 +35,4 @@ def get_findings(self, file, test):
dynamic_finding=True,
)
findings.append(finding)
return finding
return findings

0 comments on commit f4ae986

Please sign in to comment.