From 6dc743cef2371f4303608be4235a538a593374f0 Mon Sep 17 00:00:00 2001 From: Aidan Hall Date: Thu, 26 Sep 2024 14:04:43 +1000 Subject: [PATCH] Added envvars to config.SBOM config --- cmd/goreleaser/internal/configure.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/goreleaser/internal/configure.go b/cmd/goreleaser/internal/configure.go index 7a865165..719e4cee 100644 --- a/cmd/goreleaser/internal/configure.go +++ b/cmd/goreleaser/internal/configure.go @@ -52,7 +52,7 @@ func Generate(dist string) config.Project { DockerSigns: DockerSigns(), SBOMs: SBOM(), Version: 2, - Monorepo: config.Monorepo{ + Monorepo: config.Monorepo{ TagPrefix: "v", }, } @@ -321,6 +321,7 @@ func SBOM() []config.SBOM { { ID: "archive", Artifacts: "archive", + Env: []string{"SYFT_FILE_METADATA_SELECTION=all", "SYFT_FILE_METADATA_DIGESTS=sha256"}, }, { ID: "package",