Skip to content

Commit f987e41

Browse files
authoredFeb 24, 2025··
fix(k8s): add missed option PkgRelationships (#8442)
1 parent ecc01bb commit f987e41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎pkg/k8s/scanner/scanner.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ func (s *Scanner) scanK8sVulns(ctx context.Context, artifactsData []*artifacts.A
232232

233233
k8sScanner := k8s.NewKubernetesScanner()
234234
scanOptions := types.ScanOptions{
235-
Scanners: s.opts.Scanners,
236-
PkgTypes: s.opts.PkgTypes,
235+
Scanners: s.opts.Scanners,
236+
PkgTypes: s.opts.PkgTypes,
237+
PkgRelationships: s.opts.PackageOptions.PkgRelationships,
237238
}
238239
for _, artifact := range artifactsData {
239240
switch artifact.Kind {

0 commit comments

Comments
 (0)
Please sign in to comment.