chore: add SBOM generation and vulnerability audit to release pipeline#219
Merged
chore: add SBOM generation and vulnerability audit to release pipeline#219
Conversation
- Add @cyclonedx/cdxgen as devDependency for CycloneDX SBOM generation - Add `pnpm audit --audit-level=high` as before:init hook (blocks release on high/critical vulns) - Generate per-package CycloneDX SBOM in before:release hook (included in npm tarball) - Applied to both appkit/appkit-ui and lakebase release configs Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
eee5167 to
0939278
Compare
- Include sbom.cdx.json in published npm packages via files allowlist - Extract cdxgen into named release:sbom scripts for readability - Use pnpm exec cdxgen for explicit dependency resolution - Scan tmp/ (publish artifact) instead of source dirs for accurate SBOMs - Scope pnpm audit to production deps only (--prod) Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
17cc5a1 to
d596d7e
Compare
fjakobs
approved these changes
Mar 30, 2026
thekauer
added a commit
to neondatabase/neon-js
that referenced
this pull request
Mar 31, 2026
- Add npm audit --audit-level=high --production before version bumping (blocks release on high/critical CVEs, no continue-on-error) - Reorder SBOM generation before packing so sbom.cdx.json is included in each published npm tarball via the files array in package.json - Add sbom.cdx.json to .gitignore (generated artifact, not source) - All GitHub Actions in release.yml were already pinned by commit SHA Inspired by databricks/appkit#219. Co-authored-by: Isaac
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
@cyclonedx/cdxgenas devDependency for CycloneDX SBOM generation per released packagepnpm audit --audit-level=highasbefore:initrelease-it hook — blocks release on high/critical vulnerabilitiesbefore:releasehook — included in published npm tarball.release-it.json) and lakebase (packages/lakebase/.release-it.json) release configsNotes
pnpm sbomcommand, replace@cyclonedx/cdxgenwithpnpm sbomand remove the devDependencyTest plan
pnpm cdxgen -t js --no-recurse --required-only -o /tmp/test.json packages/appkitlocally to verify SBOM generationpnpm audit --audit-level=highlocally to verify audit works - it doesn't because of the proxy 501 error but it should work fine on CI (pnpm audit WARN post https://npm-proxy.dev.databricks.com/-/npm/v1/security/audits error (501). Will retry in 10 seconds. 2 retries left.)This pull request was AI-assisted by Isaac.