From af99dffeda32baf27bfa9109e54d9b04bbe2a7c5 Mon Sep 17 00:00:00 2001 From: Mario Constanti Date: Mon, 9 Sep 2024 16:21:52 +0200 Subject: [PATCH] chore: release with SBOM Signed-off-by: Mario Constanti --- .goreleaser.yaml | 2 ++ Makefile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index cf0377f..fd3f95e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -54,3 +54,5 @@ release: owner: bavarianbidi name: kubectl-dpm prerelease: auto + extra_files: + - glob: tmp/kubectl-dpm.bom.spdx diff --git a/Makefile b/Makefile index 2aa7172..fcefcfc 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ sbom-generate: kbom ## Generate SBOM ##@ Release .PHONY: release -release: goreleaser ## Create a new release +release: sbom-generate goreleaser ## Create a new release $(GORELEASER) release --clean ##@ Build Dependencies @@ -100,7 +100,7 @@ GOLANGCI_LINT_VERSION ?= v1.60.3 GORELEASER_VERSION ?= v2.0.1 NANCY_VERSION ?= v1.0.46 GOVULNCHECK_VERSION ?= v1.1.3 -KBOM_VERSION ?= v0.5.1 +KBOM_VERSION ?= v0.6.0 .PHONY: golangci-lint golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary. If wrong version is installed, it will be overwritten.