-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(SBOMER-297): rebuild purls using Syft information #1094
Conversation
@@ -50,7 +50,7 @@ public static String sanitizePurl(String purl) { | |||
return parsedPurl.canonicalize(); | |||
} catch (MalformedPackageURLException e) { | |||
// If parsing fails, proceed to manual sanitization | |||
log.error("Malformed PURL detected, attempting to sanitize: {}", e.getMessage()); | |||
log.error("Malformed PURL detected, attempting to sanitize: {}", purl, e.getMessage()); |
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.
You now miss {}
for the exception message. Or did you mean thins toi include stacktrace?
log.error("Malformed PURL detected, attempting to sanitize: {}", purl, e.getMessage()); | |
log.error("Malformed PURL detected, attempting to sanitize: " + purl, e); |
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.
Ah thanks I meant to get rid of the error message and stacktrace entirely, I overlooked!
if (bom.getMetadata() != null && bom.getMetadata().getComponent() != null) { | ||
Component mainComponent = bom.getMetadata().getComponent(); | ||
addMissingNpmDependencies(bom, mainComponent); | ||
// Add missing NPM Depenencies for CycloneDxGenerateOperationComand manifest | ||
if (mainComponent.getDescription() != null && mainComponent.getDescription().contains(SBOM_REPRESENTING_THE_DELIVERABLE)) { | ||
if (mainComponent.getDescription() != null | ||
&& mainComponent.getDescription().contains(SBOM_REPRESENTING_THE_DELIVERABLE)) { |
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.
Is this just formating? Shoudl I be doing something on my side to produce properly formated code?
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 is, but I don't recall making any particular setting.... I see we have the formatter-maven-plugin
configured, but that is it...
No description provided.