Skip to content

Commit 747ef9f

Browse files
authored
feat(cnbBuild): enable additional syft catalogers for sbom generation (#5332)
1 parent 42e7742 commit 747ef9f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

cmd/cnbBuild.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func callCnbBuild(config *cnbBuildOptions, telemetryData *telemetry.CustomData,
353353
return errors.Wrap(err, "failed to create syft scanner file")
354354
}
355355
// images produces with cnb have sboms
356-
syftScanner.AddArgument("--override-default-catalogers=sbom-cataloger")
356+
syftScanner.AddArgument("--override-default-catalogers=sbom-cataloger,go-module-binary-cataloger,apk-db-cataloger,dpkg-db-cataloger,rpm-db-cataloger")
357357
err = syftScanner.ScanImages(filepath.Dir(config.DockerConfigJSON), utils, commonPipelineEnvironment.container.registryURL, commonPipelineEnvironment.container.imageNameTags)
358358
if err != nil {
359359
log.SetErrorCategory(log.ErrorCompliance)

cmd/cnbBuild_generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/kanikoExecute_generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/metadata/cnbBuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ spec:
339339
scope:
340340
- PARAMETERS
341341
- STEPS
342-
default: "https://github.com/anchore/syft/releases/download/v1.4.1/syft_1.4.1_linux_amd64.tar.gz"
342+
default: "https://github.com/anchore/syft/releases/download/v1.22.0/syft_1.22.0_linux_amd64.tar.gz"
343343
- name: runImage
344344
type: string
345345
description: "Base image from which application images are built. Will be defaulted to the image provided by the builder."

resources/metadata/kanikoExecute.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ spec:
305305
scope:
306306
- PARAMETERS
307307
- STEPS
308-
default: "https://github.com/anchore/syft/releases/download/v1.4.1/syft_1.4.1_linux_amd64.tar.gz"
308+
default: "https://github.com/anchore/syft/releases/download/v1.22.0/syft_1.22.0_linux_amd64.tar.gz"
309309
outputs:
310310
resources:
311311
- name: commonPipelineEnvironment

0 commit comments

Comments
 (0)