Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scan and report dependency groups of vulnerabilities #655

Merged
merged 20 commits into from
Dec 11, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
only check ecosystem for empty PackageDetails
  • Loading branch information
cuixq committed Dec 8, 2023
commit a5cd81edcb38e3150f57212813faa72cedcfb2da
5 changes: 2 additions & 3 deletions pkg/lockfile/dpkg-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ func (e DpkgStatusExtractor) Extract(f DepFile) ([]PackageDetails, error) {
pkg := parseDpkgPackageGroup(group)

// PackageDetails does not contain any field that represent a "not installed" state
// To manage this state and avoid false positives, empty struct means "not installed" so skip it
if pkg.Name == "" && pkg.Version == "" && pkg.Commit == "" &&
pkg.Ecosystem == "" && pkg.CompareAs == "" && len(pkg.DepGroups) == 0 {
// To manage this state and avoid false positives, empty ecosystem means "not installed" so skip it
if pkg.Ecosystem == "" {
continue
}

Expand Down