-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(sbom): use nuget purl type for dotnet-core #2990
Conversation
pkg/purl/purl.go
Outdated
@@ -290,6 +290,8 @@ func purlType(t string) string { | |||
return packageurl.TypeMaven | |||
case string(analyzer.TypeBundler), string(analyzer.TypeGemSpec): | |||
return packageurl.TypeGem | |||
case string(analyzer.TypeNuget), string(ftypes.DotNetCore): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be TypeDotNetDeps
, no?
case string(analyzer.TypeNuget), string(ftypes.DotNetCore): | |
case string(analyzer.TypeNuget), string(analyzer. TypeDotNetDeps): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think we need to add TypeNuget
here.
Lines 80 to 98 in 4c32b47
func (p *PackageURL) AppType() string { | |
switch p.Type { | |
case packageurl.TypeComposer: | |
return string(analyzer.TypeComposer) | |
case packageurl.TypeMaven: | |
return string(analyzer.TypeJar) | |
case packageurl.TypeGem: | |
return string(analyzer.TypeGemSpec) | |
case packageurl.TypePyPi: | |
return string(analyzer.TypePythonPkg) | |
case packageurl.TypeGolang: | |
return string(analyzer.TypeGoBinary) | |
case packageurl.TypeNPM: | |
return string(analyzer.TypeNodePkg) | |
case packageurl.TypeCargo: | |
return string(analyzer.TypeRustBinary) | |
} | |
return p.Type | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Description
use nuget purl type for
dotnet-core
Before:
After:
Related issues
Checklist