Skip to content

fix: normalize sbom repository urls#9780

Open
awnoa wants to merge 2 commits into
npm:latestfrom
awnoa:fix/sbom-repository-url
Open

fix: normalize sbom repository urls#9780
awnoa wants to merge 2 commits into
npm:latestfrom
awnoa:fix/sbom-repository-url

Conversation

@awnoa

@awnoa awnoa commented Jul 17, 2026

Copy link
Copy Markdown

What / Why

Normalize hosted repository URLs before adding them as CycloneDX VCS external references. SCP-style values such as git@github.com:pkgjs/parseargs.git are emitted as RFC 3987-compatible git+ssh:// URLs instead of failing SBOM validation.

Adds a regression test for the reported @pkgjs/parseargs case.

References

Fixes #9144

@awnoa
awnoa requested review from a team as code owners July 17, 2026 18:40
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.

[BUG] npm sbom does not create suitable external references for git repository settings in some packages

1 participant