feat: generate CycloneDX SBOM on release builds - #723
Merged
Jagadeeshftw merged 1 commit intoJul 30, 2026
Conversation
- Add SBOM job to CI workflow gated to tag pushes (v*) - Generate CycloneDX 1.5 SBOM via @cyclonedx/cyclonedx-npm - Upload SBOM as GitHub Actions artifact (sbom-<tag>) - Add verification script (scripts/verify-sbom.ts) with 20 tests - Document SBOM generation in README closes Stellopay#690
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds automatic CycloneDX SBOM generation on every release (tag) build.
Closes #690
Changes
.github/workflows/ci.yml): Addedsbomjob gated to tag pushes (v*) that generates a CycloneDX 1.5 SBOM via@cyclonedx/cyclonedx-npm, verifies it with the new verification script, and uploads it as a GitHub Actions artifact (sbom-<tag>)scripts/verify-sbom.ts): Validates the generated SBOM is well-formed JSON, has the correctbomFormat(CycloneDX),specVersion, and rootmetadata.component.name(stellopay-backend)scripts/verify-sbom.test.ts): 20 tests covering valid/invalid SBOMs, file I/O errors, JSON parsing errors, and result formattingvitest.config.ts): Addedscripts/verify-sbom.tsto coverage includesREADME.md): Documented SBOM generation under CI WorkflowsVerification
npx vitest run scripts/verify-sbom.test.ts # 20/20 passing