fix: ensure name is not empty for NuGet projects run from root#6560
Merged
thomasschafer merged 1 commit intomainfrom Feb 23, 2026
Merged
fix: ensure name is not empty for NuGet projects run from root#6560thomasschafer merged 1 commit intomainfrom
thomasschafer merged 1 commit intomainfrom
Conversation
fdd95c0 to
71f5127
Compare
This comment has been minimized.
This comment has been minimized.
j-luong
approved these changes
Feb 20, 2026
71f5127 to
d0bbb50
Compare
This comment has been minimized.
This comment has been minimized.
d0bbb50 to
c043553
Compare
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
PR Reviewer Guide 🔍
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request Submission Checklist
are release-note ready, emphasizing
what was changed, not how.
What does this PR do?
We've had a support ticket from a customer who is running
snyk sbom --all-projects ...fromG:\which results in empty project names, leading the entire SBOM generation to fail. This was due to a bug in the Nuget plugin (fixed here) where an empty string was returned for the name when the CLI was run from root directories such asG:\or/. This PR fixes that issue by adding a fallback case derived from the project path.How should this be manually tested?
Run the following with a local build of the CLI, replacing
<path/to/project.assets.json>with a valid path to a NuGet manifest file:On main you should see an error like
but pointing to this branch you should see a valid SBOM.
What's the product update that needs to be communicated to CLI users?
None