Skip to content

Commit

Permalink
* SBOM using CycloneDX directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Gottschick committed May 3, 2024
1 parent d96c79c commit a7180c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@v2
with:
version: v1
args: mod -licenses -json -output bom.json
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -26,8 +31,6 @@ jobs:
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/a-h/templ/cmd/templ@latest
go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- name: Templ
run: templ generate web/pages/*.templ
- uses: goreleaser/goreleaser-action@v5
Expand Down
7 changes: 0 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,3 @@ changelog:
exclude:
- '^docs:'
- '^test:'

sboms:
- documents:
- "{{ .ProjectName }}.cdx.sbom"
artifacts: source
cmd: cyclonedx-gomod
args: ["app", "-json", "-output", "$document", "$artifact"]
2 changes: 1 addition & 1 deletion core/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.6
0.2.7

0 comments on commit a7180c7

Please sign in to comment.