1.1.1 • Published 6 days ago

rollup-plugin-sbom v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

CI CodeQL npm npm peer dependency version (scoped) img npm type definitions OpenSSF Scorecard OpenSSF Best Practices

rollup-plugin-sbom

Create SBOMs (Software Bill of Materials) in CycloneDX format for your Vite and Rollup projects, including only the software you're really shipping to production.

A “software bill of materials” (SBOM) has emerged as a key building block in software security and software supply chain risk management. A SBOM is a nested inventory, a list of ingredients that make up software components.

CISA (.gov) [full article]

Documentation


Requirements and Compatibility

PluginViteRollupNode
v1v4, v5v3, v418, 20

We're always supporting LTS Node.js versions and versions which still have security support. Plugin support will be dropped once a Node.js version reaches its final EOL.

Installation

You can install the plugin via NPM with your favorite package manager:

npm install --save-dev rollup-plugin-sbom
pnpm install -D rollup-plugin-sbom
yarn add --dev rollup-plugin-sbom

Usage

Usage with Vite

import { defineConfig } from "vite";
import sbom from "rollup-plugin-sbom";

export default defineConfig({
  plugins: [sbom()],
});

Usage with Rollup

import sbom from "rollup-plugin-sbom";

export default {
  plugins: [sbom()],
};

Configuration Options

NameDefaultDescription
specVersion1.5The CycloneDX specification version to use
rootComponentTypeapplicationThe root component type, can be library or application
outDircyclonedxThe output directory where the BOM file will be saved.
outFilenamebomThe base filename for the SBOM files.
outFormats['json', 'xml']The formats to output. Can be any of json and xml.
saveTimestamptrueWhether to save the timestamp in the BOM metadata.
autodetecttrueWhether to get the root package registered automatically.
generateSerialfalseWhether to generate a serial number for the BOM.
includeWellKnowntrueWhether to generate a SBOM in the well-known directory.

Contributing

The main purpose of this repository is to continue evolving the plugin, making it faster and easier to use. We are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving the plugin.

Good First Issues

We have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started.

Contributors

Thanks goes to these wonderful people (emoji key):

License

The plugin is licensed under MIT License

1.1.1

6 days ago

1.1.0

14 days ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

3 months ago

1.0.0

6 months ago