Commit 31a5cab
fix: address review comments on SBOM dedup check and null-safety
1. CycloneDXSbom.checkIfPackageInsideDependsOnList: the stream result
was never assigned back to allDirectDeps, so the check always returned
false. Also changed getName() comparison to use full namespace/name to
handle scoped packages (e.g. @babel/core).
2. JavaScriptProvider.addDependenciesFromKey: added null check for version
node before calling asText(), matching the defensive pattern already
used in addDependenciesOf.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fd3bc30 commit 31a5cab
File tree
2 files changed
+26
-13
lines changed- src/main/java/io/github/guacsec/trustifyda
- providers
- sbom
2 files changed
+26
-13
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
| |||
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
350 | 351 | | |
351 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
352 | 362 | | |
353 | 363 | | |
354 | 364 | | |
| |||
0 commit comments