diff --git a/lib/cli/index.js b/lib/cli/index.js index 9cc242a0f..d33d1ae78 100644 --- a/lib/cli/index.js +++ b/lib/cli/index.js @@ -2533,9 +2533,9 @@ export async function createNodejsBom(path, options) { const apkgRef = `pkg:npm/${adep}`; workspaceDirectDeps[workspaceRef].add(apkgRef); if (!depsWorkspaceRefs[apkgRef]) { - depsWorkspaceRefs[apkgRef] = new Set(); + depsWorkspaceRefs[apkgRef] = []; } - depsWorkspaceRefs[apkgRef].add(workspaceRef); + depsWorkspaceRefs[apkgRef].push(workspaceRef); } } } diff --git a/lib/helpers/utils.js b/lib/helpers/utils.js index 6928f7884..a488a4604 100644 --- a/lib/helpers/utils.js +++ b/lib/helpers/utils.js @@ -1968,6 +1968,59 @@ function _markTreeOptional( } } +function _setTreeWorkspaceRef( + dependenciesMap, + depref, + pkgRefMap, + wref, + wsrcFile, + depsWorkspaceRefs, +) { + for (const dref of dependenciesMap[depref] || []) { + const addedMap = {}; + const depPkg = pkgRefMap[dref]; + if (!depPkg) { + continue; + } + const wsprops = depPkg.properties.filter( + (p) => p.name === "internal:workspaceRef", + ); + if (wsprops.length) { + continue; + } + depPkg.properties = depPkg.properties || []; + for (const prop of depPkg.properties) { + addedMap[prop.value] = true; + } + if (!addedMap[wref]) { + depPkg.properties.push({ + name: "internal:workspaceRef", + value: wref, + }); + addedMap[wref] = true; + } + if (wsrcFile && !addedMap[wsrcFile]) { + depPkg.properties.push({ + name: "internal:workspaceSrcFile", + value: wsrcFile, + }); + addedMap[wsrcFile] = true; + } + depsWorkspaceRefs[dref] = depsWorkspaceRefs[dref] || []; + depsWorkspaceRefs[dref] = depsWorkspaceRefs[dref].concat( + dependenciesMap[depref] || [], + ); + _setTreeWorkspaceRef( + dependenciesMap, + dref, + pkgRefMap, + wref, + wsrcFile, + depsWorkspaceRefs, + ); + } +} + async function getVersionNumPnpm(depPkg, relativePath) { let version = depPkg; if (typeof version === "object" && depPkg.version) { @@ -2059,6 +2112,7 @@ export async function parsePnpmLock( const parentSubComponents = []; const srcFilesMap = {}; const workspacePackageNames = {}; + const pkgRefMap = {}; // Track references to packages that are directly installed from github.com const gitPkgRefs = {}; // pnpm could refer to packages from git sources @@ -2569,6 +2623,7 @@ export async function parsePnpmLock( } } const purlNoVersion = new PackageURL("npm", group, name).toString(); + let packageType = "library"; const theBomRef = decodeURIComponent(purlString); if ( workspacePackageNames[decodeURIComponent(purlNoVersion)] || @@ -2578,6 +2633,7 @@ export async function parsePnpmLock( name: "internal:is_workspace", value: "true", }); + packageType = "application"; const wsSrcFile = workspaceSrcFiles[decodeURIComponent(purlNoVersion)] || workspaceSrcFiles[theBomRef]; @@ -2634,6 +2690,7 @@ export async function parsePnpmLock( version: version, purl: purlString, "bom-ref": theBomRef, + type: packageType, scope, _integrity: integrity, properties, @@ -2651,7 +2708,11 @@ export async function parsePnpmLock( }, }, }; - pkgList.push(thePkg); + // Don't add internal workspace packages to the components list + if (thePkg.type !== "application") { + pkgList.push(thePkg); + } + pkgRefMap[thePkg["bom-ref"]] = thePkg; } } } @@ -2703,35 +2764,53 @@ export async function parsePnpmLock( if (requiredDependencies[apkg["bom-ref"]]) { apkg.scope = undefined; } - if (depsWorkspaceRefs[apkg["bom-ref"]]?.length) { + // There are no workspaces so exit early + if (!Object.keys(workspacePackageNames).length) { + continue; + } + const purlNoVersion = decodeURIComponent( + new PackageURL("npm", apkg.group, apkg.name).toString(), + ); + const wsRefs = + depsWorkspaceRefs[apkg["bom-ref"]] || depsWorkspaceRefs[purlNoVersion]; + // There is a workspace reference + if (wsRefs?.length) { const wsprops = apkg.properties.filter( (p) => p.name === "internal:workspaceRef", ); - if (!wsprops.length) { - for (const wref of depsWorkspaceRefs[apkg["bom-ref"]]) { - // Such a cycle should never happen, but we can't sure - if (wref === apkg["bom-ref"]) { - continue; - } + // workspace properties are already set. + if (wsprops.length) { + continue; + } + for (const wref of wsRefs) { + // Such a cycle should never happen, but we can't sure + if (wref === apkg["bom-ref"]) { + continue; + } + apkg.properties.push({ + name: "internal:workspaceRef", + value: wref, + }); + const purlObj = PackageURL.fromString(apkg.purl); + purlObj.version = undefined; + const wrefNoVersion = decodeURIComponent(purlObj.toString()); + const wsrcFile = + workspaceSrcFiles[wref] || workspaceSrcFiles[wrefNoVersion]; + if (wsrcFile) { apkg.properties.push({ - name: "internal:workspaceRef", - value: wref, + name: "internal:workspaceSrcFile", + value: wsrcFile, }); - const purlObj = PackageURL.fromString(apkg.purl); - purlObj.version = undefined; - const wrefNoVersion = decodeURIComponent(purlObj.toString()); - if (workspaceSrcFiles[wref]) { - apkg.properties.push({ - name: "internal:workspaceSrcFile", - value: workspaceSrcFiles[wref], - }); - } else if (workspaceSrcFiles[wrefNoVersion]) { - apkg.properties.push({ - name: "internal:workspaceSrcFile", - value: workspaceSrcFiles[wrefNoVersion], - }); - } } + // Repeat for the children + _setTreeWorkspaceRef( + dependenciesMap, + apkg["bom-ref"], + pkgRefMap, + wref, + wsrcFile, + depsWorkspaceRefs, + ); } } } @@ -4915,7 +4994,11 @@ export async function parsePyLockData(lockData, lockFile, pyProjectFile) { // This would help the lookup existingPkgMap[pkg.name.toLowerCase()] = pkg["bom-ref"]; pkgBomRefMap[pkg["bom-ref"]] = pkg; - pkgList.push(pkg); + // Do not repeat workspace components again under components + // This will reduce false positives, when a downstream tool attempts to analyze all components + if (pkg.type !== "application") { + pkgList.push(pkg); + } if (!depsMap[pkg["bom-ref"]]) { depsMap[pkg["bom-ref"]] = new Set(); } diff --git a/lib/helpers/utils.test.js b/lib/helpers/utils.test.js index d696f6f5a..110f0df08 100644 --- a/lib/helpers/utils.test.js +++ b/lib/helpers/utils.test.js @@ -3498,6 +3498,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/@babel/code-frame@7.10.1", purl: "pkg:npm/%40babel/code-frame@7.10.1", scope: undefined, + type: "library", version: "7.10.1", properties: [ { @@ -3530,6 +3531,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/@babel/code-frame@7.16.7", purl: "pkg:npm/%40babel/code-frame@7.16.7", scope: "optional", + type: "library", version: "7.16.7", properties: [ { @@ -3561,6 +3563,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/ansi-regex@2.1.1", purl: "pkg:npm/ansi-regex@2.1.1", scope: undefined, + type: "library", _integrity: "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", properties: [{ name: "SrcFile", value: "./test/data/pnpm-lock2.yaml" }], evidence: { @@ -3597,6 +3600,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/@nodelib/fs.scandir@2.1.5", purl: "pkg:npm/%40nodelib/fs.scandir@2.1.5", scope: undefined, + type: "library", _integrity: "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", properties: [{ name: "SrcFile", value: "./test/data/pnpm-lock3.yaml" }], @@ -3632,6 +3636,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/@babel/code-frame@7.18.6", purl: "pkg:npm/%40babel/code-frame@7.18.6", scope: "optional", + type: "library", _integrity: "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", properties: [{ name: "SrcFile", value: "./test/data/pnpm-lock6.yaml" }], @@ -3656,6 +3661,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/yargs@17.7.1", purl: "pkg:npm/yargs@17.7.1", scope: "optional", + type: "library", _integrity: "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", properties: [{ name: "SrcFile", value: "./test/data/pnpm-lock6.yaml" }], @@ -3683,6 +3689,7 @@ test("parsePnpmLock", async () => { "bom-ref": "pkg:npm/@babel/code-frame@7.18.6", purl: "pkg:npm/%40babel/code-frame@7.18.6", scope: "optional", + type: "library", _integrity: "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", properties: [{ name: "SrcFile", value: "./test/data/pnpm-lock6a.yaml" }], @@ -3764,6 +3771,7 @@ test("parsePnpmLock", async () => { version: "2.3.0", purl: "pkg:npm/%40ampproject/remapping@2.3.0", "bom-ref": "pkg:npm/@ampproject/remapping@2.3.0", + type: "library", _integrity: "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", properties: [{ name: "SrcFile", value: "./pnpm-lock.yaml" }], diff --git a/lib/helpers/validator.js b/lib/helpers/validator.js index dd21fac66..511de56a1 100644 --- a/lib/helpers/validator.js +++ b/lib/helpers/validator.js @@ -301,6 +301,7 @@ export function validateProps(bomJson) { if ( isWorkspaceMode && !workspacePropFound && + !srcFilePropFound && comp?.scope !== "optional" ) { warningsList.push( diff --git a/types/lib/helpers/utils.d.ts.map b/types/lib/helpers/utils.d.ts.map index ec54036f8..7aeb058e7 100644 --- a/types/lib/helpers/utils.d.ts.map +++ b/types/lib/helpers/utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../lib/helpers/utils.js"],"names":[],"mappings":"AAiJA,8CAKC;AAED,0CAIC;AAqBD,yCAYC;AAED,2CAQC;AAoND;;;;;;;GAOG;AACH,4EAiBC;AAED;;;;;;GAMG;AACH,mGA2EC;AAED;;;;;;;;GAQG;AACH,yGASC;AAgBD;;;;;;GAMG;AACH,qCAJW,MAAM,WACN,MAAM,2BA8BhB;AAED;;;;;;GAMG;AACH,+CAJW,MAAM,WACN,MAAM,+BAoBhB;AAYD;;;;GAIG;AACH,gCAFa,MAAM,CAIlB;AAED,iCAKC;AAED;;;;;;IAMI;AACJ,iDAJW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;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czC,gCAA6C;AAU7C,8BAAiC;AAIjC,4BAA6B;AAI7B,2BAA2B;AAI3B,4BAA6B;AAI7B,2BAA2B;AAI3B,6BAA+B;AAI/B,0BAAyB;AAIzB,6BAA+B;AAM/B,2BAA2B;AAK3B,4BAA6B;AAK7B,mCAAoC;AAOpC,gDAC2D;AAE3D,2BAAuD;AAGvD,kDAWE;AAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqIE;;;;AA8IF,8BAQG;AA2rLH,8CAUE"} \ No newline at end of file +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../lib/helpers/utils.js"],"names":[],"mappings":"AAiJA,8CAKC;AAED,0CAIC;AAqBD,yCAYC;AAED,2CAQC;AAoND;;;;;;;GAOG;AACH,4EAiBC;AAED;;;;;;GAMG;AACH,mGA2EC;AAED;;;;;;;;GAQG;AACH,yGASC;AAgBD;;;;;;GAMG;AACH,qCAJW,MAAM,WACN,MAAM,2BA8BhB;AAED;;;;;;GAMG;AACH,+CAJW,MAAM,WACN,MAAM,+BAoBhB;AAYD;;;;GAIG;AACH,gCAFa,MAAM,CAIlB;AAED,iCAKC;AAED;;;;;;IAMI;AACJ,iDAJW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;;;;;;GASG;AACH,iEA2BC;AAED;;;;;GAKG;AACH,6CAqDC;AAED;;;;;;GAMG;AACH,sEA0DC;AAED;;;;GAIG;AACH,4EAoCC;AAED;;;GAGG;AACH;;EAUC;AAED,sEA0BC;AAED;;;;GAIG;AACH,+DA4CC;AAED;;;;;GAKG;AACH,0CAHW,MAAM,WACN,OAAO,kBAkFjB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,YACN,MAAM;;;GA+ehB;AAED;;;;;;;GAOG;AACH,6CAFW,MAAM,MA2DhB;AAwBD;;;;GAIG;AACH,4CAFW,MAAM;;;GAkOhB;AAED;;;;GAIG;AACH,4CAFW,MAAM,kBAiEhB;AAoHD;;;;;GAKG;AACH,kDAHW,MAAM,GACJ,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuYhB;AAED;;;;;;;;;;;GAWG;AACH,gDAPW,MAAM,+BAEN,MAAM;;;;;;;;;;;;;;;;EA+KhB;AAGD;;;;;EAmBC;AAED;;;;;;;GAOG;AACH,kEAJW,MAAM,cACN,MAAM,iCA2IhB;AAED,qDASC;AAED;;;;;;;EA2GC;AAED;;;EA8PC;AAED,sEA6BC;AAED;;;;;;;GAOG;AACH,mCALW,MAAM,WACN,MAAM;;;;;;;EAuQhB;AAED;;;;;;GAMG;AACH,2CAHW,MAAM,OAKhB;AAED,qDA0CC;AA8HD;;;;;GAKG;AACH;;;GA2HC;AAED,yEA0HC;AAED;;;;;;GAMG;AACH,mDAkBC;AAED;;;;;;;;;;GAUG;AACH,0DAkBC;AAED;;;;;;GAMG;AACH,sFAsBC;AAED;;;;;;;GAOG;AACH,2EAgCC;AAz2bD,gCAEc;AACd,4BAA4C;AAC5C,4BAA6C;AAC7C,2BAAmE;AAsBnE,iCAEE;AA2BF,iCAIyC;AAGzC,gCACmE;AAGnE,gCACsE;AAGtE,8BAA+B;AAK/B,4CAEmE;AAGnE,6CAEE;AAgBF,oCAAkD;AAGlD,uCAEuD;AAYvD,8BAAyC;AAczC,gCAA6C;AAU7C,8BAAiC;AAIjC,4BAA6B;AAI7B,2BAA2B;AAI3B,4BAA6B;AAI7B,2BAA2B;AAI3B,6BAA+B;AAI/B,0BAAyB;AAIzB,6BAA+B;AAM/B,2BAA2B;AAK3B,4BAA6B;AAK7B,mCAAoC;AAOpC,gDAC2D;AAE3D,2BAAuD;AAGvD,kDAWE;AAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqIE;;;;AA8IF,8BAQG;AA8wLH,8CAUE"} \ No newline at end of file diff --git a/types/lib/helpers/validator.d.ts.map b/types/lib/helpers/validator.d.ts.map index d700b4e88..3b38ac9c9 100644 --- a/types/lib/helpers/validator.d.ts.map +++ b/types/lib/helpers/validator.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../lib/helpers/validator.js"],"names":[],"mappings":"AAgRA;;;;GAIG;AACH,uCAFW,MAAM,WAoDhB;AApTM,qCAFI,MAAM,WAgDhB;AAOM,0CAFI,MAAM,WAwDhB;AAOM,uCAFI,MAAM,WAgEhB;AA6BM,sCAFI,MAAM,WAgDhB"} \ No newline at end of file +{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../lib/helpers/validator.js"],"names":[],"mappings":"AAgRA;;;;GAIG;AACH,uCAFW,MAAM,WAqDhB;AArTM,qCAFI,MAAM,WAgDhB;AAOM,0CAFI,MAAM,WAwDhB;AAOM,uCAFI,MAAM,WAgEhB;AA6BM,sCAFI,MAAM,WAgDhB"} \ No newline at end of file