mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
fix: include packages unless it is not needed (#6765)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -47,10 +47,9 @@ func (s *ScanServer) Scan(ctx context.Context, in *rpcScanner.ScanRequest) (*rpc
|
||||
return types.Scanner(s)
|
||||
})
|
||||
options := types.ScanOptions{
|
||||
VulnType: in.Options.VulnType,
|
||||
Scanners: scanners,
|
||||
ListAllPackages: in.Options.ListAllPackages,
|
||||
IncludeDevDeps: in.Options.IncludeDevDeps,
|
||||
VulnType: in.Options.VulnType,
|
||||
Scanners: scanners,
|
||||
IncludeDevDeps: in.Options.IncludeDevDeps,
|
||||
}
|
||||
results, os, err := s.localScanner.Scan(ctx, in.Target, in.ArtifactId, in.BlobIds, options)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user