Skip to content

Commit

Permalink
build: add after hook for grype on generated sboms
Browse files Browse the repository at this point in the history
  • Loading branch information
maier committed Nov 28, 2023
1 parent 6aef5e0 commit 0aecd3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ sboms:
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

0 comments on commit 0aecd3b

Please sign in to comment.