Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ Options:
--help Show this message and exit.
```

Possible column names are:
* name (python package name)
* version (python package version)
* coordinate
* id
* cve (optional, might be emtpy)
* cvss_score
* cvss_vector
* short_title
* title
* description
* reference (url with further information on ossindex website)

## Configuration

Expand Down
10 changes: 10 additions & 0 deletions ossaudit/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@
"Vulnerability", [
"name",
"version",
"coordinate",
"id",
"cve",
"cvss_score",
"cvss_vector",
"short_title",
"title",
"description",
"reference",
"external_references"
]
)

Expand Down Expand Up @@ -88,8 +93,13 @@ def _transform(pkg: packages.Package, vuln: Dict) -> Vulnerability:
name=pkg.name,
version=pkg.version,
id=vuln.get("id", ""),
coordinate=pkg.coordinate,
short_title=vuln.get("displayName", ""),
cve=vuln.get("cve", ""),
cvss_score=vuln.get("cvssScore", ""),
cvss_vector=vuln.get("cvssVector", ""),
title=vuln.get("title", ""),
description=vuln.get("description", ""),
reference=vuln.get("reference", ""),
external_references=vuln.get("externalReferences", [])
)