-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
report yarn patches as pedigree not components
Instead of reporting yarn patches as independent Components in the SBOM, report them instead as Pedigree for the parent, non-patch Component. This uses the Pedigree model of SBOM Components, which was implemented in accordance with: https://cyclonedx.org/docs/1.6/json/#components_items_pedigree_patches Yarn has the concept of "builtin" patches that are applied by yarn itself to make certain features of yarn work. These are reported out of the Yarn source repository for currently known patches from the compat plugin. Signed-off-by: Taylor Madore <[email protected]>
- Loading branch information
1 parent
6863a26
commit db6e6d9
Showing
4 changed files
with
413 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,18 +314,16 @@ | |
}, | ||
{ | ||
"name": "cachito-npm-without-deps", | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
"value": "cachi2" | ||
} | ||
], | ||
"purl": "pkg:npm/[email protected]", | ||
"type": "library", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "cachito-npm-without-deps", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@70515793108df42547d3320c7ea4cd6b6e505c46#.yarn/patches/[email protected]" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
@@ -662,6 +660,22 @@ | |
}, | ||
{ | ||
"name": "fsevents", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@70515793108df42547d3320c7ea4cd6b6e505c46#my-patches/fsevents.patch" | ||
}, | ||
"type": "unofficial" | ||
}, | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/yarnpkg/berry@%40yarnpkg/cli/3.6.1#packages/plugin-compat/sources/patches/fsevents.patch.ts" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
@@ -961,6 +975,22 @@ | |
}, | ||
{ | ||
"name": "left-pad", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@70515793108df42547d3320c7ea4cd6b6e505c46#my-patches/left-pad.patch" | ||
}, | ||
"type": "unofficial" | ||
}, | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@70515793108df42547d3320c7ea4cd6b6e505c46#my-patches/left-pad-2.patch" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
@@ -1691,6 +1721,16 @@ | |
}, | ||
{ | ||
"name": "typescript", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/yarnpkg/berry@%40yarnpkg/cli/3.6.1#packages/plugin-compat/sources/patches/typescript.patch.ts" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -314,18 +314,16 @@ | |
}, | ||
{ | ||
"name": "cachito-npm-without-deps", | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
"value": "cachi2" | ||
} | ||
], | ||
"purl": "pkg:npm/[email protected]", | ||
"type": "library", | ||
"version": "1.0.0" | ||
}, | ||
{ | ||
"name": "cachito-npm-without-deps", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@53a2bfe8d5ee7ed9c2f752fe75831a881d54895f#.yarn/patches/[email protected]" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
@@ -662,6 +660,22 @@ | |
}, | ||
{ | ||
"name": "fsevents", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@53a2bfe8d5ee7ed9c2f752fe75831a881d54895f#my-patches/fsevents.patch" | ||
}, | ||
"type": "unofficial" | ||
}, | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/yarnpkg/berry@%40yarnpkg/cli/4.5.2#packages/plugin-compat/sources/patches/fsevents.patch.ts" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
@@ -961,6 +975,22 @@ | |
}, | ||
{ | ||
"name": "left-pad", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@53a2bfe8d5ee7ed9c2f752fe75831a881d54895f#my-patches/left-pad.patch" | ||
}, | ||
"type": "unofficial" | ||
}, | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/cachito-testing/cachi2-yarn-berry.git@53a2bfe8d5ee7ed9c2f752fe75831a881d54895f#my-patches/left-pad-2.patch" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
@@ -1691,6 +1721,16 @@ | |
}, | ||
{ | ||
"name": "typescript", | ||
"pedigree": { | ||
"patches": [ | ||
{ | ||
"diff": { | ||
"url": "git+https://github.com/yarnpkg/berry@%40yarnpkg/cli/4.5.2#packages/plugin-compat/sources/patches/typescript.patch.ts" | ||
}, | ||
"type": "unofficial" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "cachi2:found_by", | ||
|
Oops, something went wrong.