Add output for package causing vulnerability
Include the name of package that caused the vulnerability in the output.
This commit is contained in:
parent
1866821a80
commit
2300ae9ad7
@ -42,7 +42,7 @@ type APIVulnerabilitiesResponse struct {
|
||||
}
|
||||
|
||||
type APIVulnerability struct {
|
||||
ID, Link, Priority, Description string
|
||||
ID, Link, Priority, Description, CausedByPackage string
|
||||
}
|
||||
|
||||
func main() {
|
||||
@ -130,6 +130,7 @@ func main() {
|
||||
fmt.Printf("- # %s\n", vulnerability.ID)
|
||||
fmt.Printf(" - Priority: %s\n", vulnerability.Priority)
|
||||
fmt.Printf(" - Link: %s\n", vulnerability.Link)
|
||||
fmt.Printf(" - Package: %s\n", vulnerability.CausedByPackage)
|
||||
fmt.Printf(" - Description: %s\n", vulnerability.Description)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user