Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sbom generation at release time #37

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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