Skip to content

MLE-32228 Ship SBOM in NPM package - #1117

Merged
rjdew-progress merged 1 commit into
developfrom
MLE-32228
Aug 29, 2026
Merged

MLE-32228 Ship SBOM in NPM package#1117
rjdew-progress merged 1 commit into
developfrom
MLE-32228

Conversation

@rjdew-progress

Copy link
Copy Markdown

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Software Bill of Materials (SBOM) to the published NPM package by generating a versioned SPDX JSON filename during publish and whitelisting it for inclusion in the package tarball.

Changes:

  • Include marklogic-*.spdx.json in the published package via the files whitelist.
  • Add a prepublishOnly step intended to generate a versioned SBOM filename from sbom.spdx.json.
  • Ignore generated SBOM artifacts in .gitignore.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Whitelists the SBOM artifact for publishing and adds a publish-time generation script.
.gitignore Prevents locally generated SBOM publish artifacts from being committed.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
"scripts": {
"doc": "jsdoc -c jsdoc.json lib/*.js README.md",
"lint": "gulp lint",
"prepublishOnly": "cp sbom.spdx.json \"marklogic-${npm_package_version}.spdx.json\"",
@rjdew-progress
rjdew-progress merged commit 133d256 into develop Aug 29, 2026
5 checks passed
@rjdew-progress
rjdew-progress deleted the MLE-32228 branch August 29, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants