Skip to content

Commit 70b37fd

Browse files
committed
fix: always append os scan result
1 parent a2cf0fc commit 70b37fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/scan/scan.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ func walkDirScan(ctx context.Context, cfg *types.Config, tag *v1.TagReference, c
377377
// operating systems that haven't been certified, yet.
378378
osInfo := validations.ValidateOS(cfg, mountPath)
379379
osScanResult := types.NewScanResult().SetOS(osInfo).SetComponent(component).SetTag(tag)
380-
if osScanResult.Error != nil {
381-
results.Append(osScanResult)
382-
}
380+
results.Append(osScanResult)
383381
}
384382

385383
// does the image contain openssl

0 commit comments

Comments
 (0)