Skip to content

Commit 3102e17

Browse files
authored
Merge pull request #136 from crazy-max/fix-cataloger
set file tag explicitly to suppress warning
2 parents c79b73d + 35635ab commit 3102e17

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

internal/target.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"strings"
2323

2424
"github.com/anchore/syft/syft"
25+
"github.com/anchore/syft/syft/cataloging/filecataloging"
2526
"github.com/anchore/syft/syft/cataloging/pkgcataloging"
2627
"github.com/anchore/syft/syft/sbom"
2728
"github.com/anchore/syft/syft/source"
@@ -46,8 +47,13 @@ func (t Target) Scan(ctx context.Context) (sbom.SBOM, error) {
4647
}
4748

4849
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+
)
5157

5258
if v, ok := os.LookupEnv("BUILDKIT_SCAN_SELECT_CATALOGERS"); ok {
5359
sr = pkgcataloging.NewSelectionRequest().WithExpression(strings.Split(v, ",")...)

0 commit comments

Comments
 (0)