Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Open
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
2 changes: 1 addition & 1 deletion query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func QueryCves(sb *types.Sbom, cve string, workspace string, apiKey string) (*[]
return nil, errors.Wrapf(err, "failed to unmarshal response")
}
if len(result.Query.Data) > 0 {
if len(result.Query.Data) == 1 {
if len(result.Query.Data) == 1 && len(result.Query.Data[0].Cves) != 0 {
skill.Log.Infof("Detected %d vulnerability", len(result.Query.Data[0].Cves))
} else {
skill.Log.Infof("Detected %d vulnerabilities", len(result.Query.Data[0].Cves))
Expand Down