Skip to content

Commit

Permalink
ci: SBOM for releases
Browse files Browse the repository at this point in the history
Add source bill of materials (SBOM) generation in goreleaser config.
  • Loading branch information
vlesich-sylabs committed Mar 30, 2022
1 parent 3dcab2e commit bafd11f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Expand Up @@ -87,6 +87,9 @@ jobs:
executor: golang-latest
steps:
- checkout
- run:
name: Install syft
command: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- run:
name: Test Release
command: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish
Expand All @@ -95,6 +98,9 @@ jobs:
executor: golang-latest
steps:
- checkout
- run:
name: Install syft
command: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- run:
name: Publish Release
command: curl -sL https://git.io/goreleaser | bash
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yml
Expand Up @@ -65,3 +65,6 @@ archives:
- id: linux-archives
builds:
- linux-builds

sboms:
- artifacts: archive

0 comments on commit bafd11f

Please sign in to comment.