Skip to content

Commit

Permalink
Merge pull request #37 from Malwarebytes/sbom
Browse files Browse the repository at this point in the history
Support `sbom` generation at release time
  • Loading branch information
jboursier-mwb authored Oct 11, 2022
2 parents bc00018 + a5d0410 commit 91bc99a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ZIP = zip
PIP3 = python3 -m pip
PYTHON3 = python3
POETRY = poetry
SYFT = syft


clean: ## clean existing builds
Expand All @@ -15,6 +16,7 @@ clean: ## clean existing builds

release: ## Build a wheel
$(POETRY) build
$(SYFT) packages file:poetry.lock -o spdx-json > dist/sbom.json
cd dist && sha512sum * > ../checksums.sha512
gpg --detach-sign --armor checksums.sha512

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ make release

### Publish a new version

**Requires `syft` to be installed to generate the sbom.**

1. Bump the version number as described above
2. `make deps` to update the dependencies
3. `make release` to build the packages
Expand Down

0 comments on commit 91bc99a

Please sign in to comment.