
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Generate a CycloneDX SBOM from a PNPM Node.js project.
⚠️ pnpm-cdx is alpha, it generate license reports for GitLab CI. CycloneDX format is work in progress. ⚠️
The pnpm-cdx package includes both a CLI and a library with commonjs and esm entrypoints. Installation is as you would expect:
With pnpm:
pnpm add pnpm-cdx
With yarn:
yarn add pnpm-cdx
With npm:
npm i pnpm-cdx
Typically in CI scenarios, you may prefer to install pnpm-cdx globally with your package managers global flag (usually -g
), as in this contrived example adapted from this repository's Earthly Earthfile:
validate:
FROM node:16-bullseye
WORKDIR /app
RUN npm i pnpm-cdx -g
RUN pnpm-cdx gitlab -o gl-license-report.json
SAVE ARTIFACT gl-license-report.json
import { analyseProject } from "pnpm-cdx";
(async () => {
// analyze *this* project
const analysis = await analyseProject(".")
// generate gitlab compatible license report
const report = await analysis.generateReport({
format: "gitlab-license-report-2.1",
})
// pretty print the report
console.log(JSON.stringify(report, null, 2))
})()
FAQs
Generate a CycloneDX SBOM from a PNPM Node.js project.
The npm package pnpm-cdx receives a total of 2 weekly downloads. As such, pnpm-cdx popularity was classified as not popular.
We found that pnpm-cdx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.