Skip to content

Commit

Permalink
fix: add LicenseFiles into summary table
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Jan 29, 2025
1 parent eb4d2fa commit a57dcc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/report/table/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (s LicenseScanner) Header() string {
}

func (s LicenseScanner) Count(result types.Result) int {
if result.Class == types.ClassLicense {
if result.Class == types.ClassLicense || result.Class == types.ClassLicenseFile {
return len(result.Licenses)
}
return -1
Expand Down
4 changes: 2 additions & 2 deletions pkg/report/table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (
"slices"
"strings"

"github.com/aquasecurity/trivy/pkg/log"
xstrings "github.com/aquasecurity/trivy/pkg/x/strings"
"github.com/fatih/color"
"github.com/samber/lo"
"golang.org/x/xerrors"

"github.com/aquasecurity/table"
"github.com/aquasecurity/tml"
dbTypes "github.com/aquasecurity/trivy-db/pkg/types"
"github.com/aquasecurity/trivy/pkg/log"
"github.com/aquasecurity/trivy/pkg/types"
xstrings "github.com/aquasecurity/trivy/pkg/x/strings"
)

var (
Expand Down

0 comments on commit a57dcc6

Please sign in to comment.