File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
22
22
"strings"
23
23
24
24
"github.com/anchore/syft/syft"
25
+ "github.com/anchore/syft/syft/cataloging/filecataloging"
25
26
"github.com/anchore/syft/syft/cataloging/pkgcataloging"
26
27
"github.com/anchore/syft/syft/sbom"
27
28
"github.com/anchore/syft/syft/source"
@@ -46,8 +47,13 @@ func (t Target) Scan(ctx context.Context) (sbom.SBOM, error) {
46
47
}
47
48
48
49
sr := pkgcataloging .NewSelectionRequest ().
49
- WithDefaults (pkgcataloging .ImageTag ).
50
- WithAdditions ("sbom-cataloger" )
50
+ WithDefaults (
51
+ pkgcataloging .ImageTag ,
52
+ filecataloging .FileTag , // https://github.com/anchore/syft/pull/3505
53
+ ).
54
+ WithAdditions (
55
+ "sbom-cataloger" ,
56
+ )
51
57
52
58
if v , ok := os .LookupEnv ("BUILDKIT_SCAN_SELECT_CATALOGERS" ); ok {
53
59
sr = pkgcataloging .NewSelectionRequest ().WithExpression (strings .Split (v , "," )... )
You can’t perform that action at this time.
0 commit comments