Skip to content

Commit

Permalink
Merge pull request #142 from maier/master
Browse files Browse the repository at this point in the history
v0.19.1
  • Loading branch information
maier authored Nov 28, 2023
2 parents f2409ec + 1c804e6 commit 59f6360
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
project_name: circonus-kubernetes-agent

before:
hooks:
- go mod tidy
- cmd: golangci-lint run
env:
- GOOS=linux
- govulncheck ./...

builds:
- id: cka
main: main.go
Expand All @@ -14,6 +22,8 @@ builds:
ignore:
-
goarch: 386
flags:
- -trimpath
ldflags:
- -s
- -w
Expand Down Expand Up @@ -95,3 +105,15 @@ release:

checksum:
name_template: "{{.ProjectName}}_checksums.txt"

sboms:
- artifacts: archive
args: ["$artifact", "--output", "[email protected]=$document"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true

after:
hooks:
- cmd: bash -c 'for b in *.sbom; do grype -q --add-cpes-if-none $b; done'
dir: ./dist
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# **unreleased**

## v0.19.1

* build: add after hook for `grype` on generated sboms
* build: add .sbom for archive artifacts
* build: add before hooks for `go mod tidy`, `govulncheck` and `golangci-lint`

## v0.19.0

* chore(goreleaser): remove archives.rlcp -- deprecated
Expand Down

0 comments on commit 59f6360

Please sign in to comment.