GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix!: align CycloneDX SBOM component names with SPDX by cyphercodes · Pull Request #9284 · npm/cli

Conversation

@cyphercodes

@cyphercodes cyphercodes commented Apr 26, 2026 •
edited by owlstronaut
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: npm sbom --sbom-format=cyclonedx now reports the name field from each package's package.json instead of the on-disk directory name. The name, bom-ref, and purl of the root component and of aliased dependencies may change.

fixes: #9178

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cyphercodes
fix: use package name for CycloneDX root component
9c99c31
@cyphercodes
cyphercodes requested a review from a team as a code owner April 26, 2026 23:47
@owlstronaut owlstronaut changed the title fix: use package name for CycloneDX root component fix!: align CycloneDX SBOM component names with SPDX Apr 27, 2026
owlstronaut
owlstronaut previously approved these changes Apr 27, 2026
View reviewed changes
@owlstronaut

owlstronaut commented Apr 27, 2026

Copy link
Copy Markdown

@cyphercodes I made this a breaking change so it'll go in npm 12. I can imagine people will have relied on the previous implementation.

Could you run npm run snap to regenerate the snapshots?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cyphercodes
test: update sbom CycloneDX snapshots
dfd7029
@cyphercodes
cyphercodes dismissed owlstronaut’s stale review via dfd7029 April 27, 2026 20:24
@cyphercodes

cyphercodes commented Apr 27, 2026

Copy link
Copy Markdown
Contributor Author

Updated the CycloneDX SBOM snapshots with npm run snap.

Local verification run:

  • npm run snap ✅
  • npm exec -- tap --no-coverage test/lib/commands/sbom.js test/lib/utils/sbom-cyclonedx.js ✅
  • npm exec -- eslint lib/utils/sbom-cyclonedx.js test/lib/utils/sbom-cyclonedx.js test/lib/commands/sbom.js ✅
  • git diff --check ✅
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

owlstronaut
owlstronaut approved these changes Apr 28, 2026
View reviewed changes
@owlstronaut
owlstronaut merged commit faf7348 into npm:latest Apr 28, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
chore: release 12.0.0-pre.0.0 #9229
Merged
@npm-cli-bot npm-cli-bot mentioned this pull request Jun 23, 2026
deps: upgrade npm to 12.0.0-pre.1 nodejs/node#64096
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Jul 31, 2026
Master forensic audit remediation AmirrezaFarnamTaheri/Farzan#15
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@owlstronaut owlstronaut owlstronaut approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[BUG] NPM SBOM does not use package.json for component name

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@cyphercodes @owlstronaut
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.