@cyclonedx/cdxgen 12.1.4 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -39
- package/bin/cdxgen.js +181 -90
- package/bin/evinse.js +4 -4
- package/bin/repl.js +3 -3
- package/bin/sign.js +102 -0
- package/bin/validate.js +233 -0
- package/bin/verify.js +69 -28
- package/data/queries.json +1 -1
- package/data/rules/ci-permissions.yaml +186 -0
- package/data/rules/dependency-sources.yaml +123 -0
- package/data/rules/package-integrity.yaml +135 -0
- package/data/rules/vscode-extensions.yaml +228 -0
- package/lib/cli/index.js +484 -440
- package/lib/evinser/db.js +137 -0
- package/lib/{helpers → evinser}/db.poku.js +2 -6
- package/lib/evinser/evinser.js +5 -18
- package/lib/evinser/swiftsem.js +1 -1
- package/lib/helpers/bomSigner.js +312 -0
- package/lib/helpers/bomSigner.poku.js +156 -0
- package/lib/helpers/caxa.js +1 -1
- package/lib/helpers/ciParsers/azurePipelines.js +295 -0
- package/lib/helpers/ciParsers/azurePipelines.poku.js +253 -0
- package/lib/helpers/ciParsers/circleCi.js +286 -0
- package/lib/helpers/ciParsers/circleCi.poku.js +230 -0
- package/lib/helpers/ciParsers/common.js +24 -0
- package/lib/helpers/ciParsers/githubActions.js +636 -0
- package/lib/helpers/ciParsers/githubActions.poku.js +802 -0
- package/lib/helpers/ciParsers/gitlabCi.js +213 -0
- package/lib/helpers/ciParsers/gitlabCi.poku.js +247 -0
- package/lib/helpers/ciParsers/jenkins.js +181 -0
- package/lib/helpers/ciParsers/jenkins.poku.js +197 -0
- package/lib/helpers/depsUtils.js +203 -0
- package/lib/helpers/depsUtils.poku.js +150 -0
- package/lib/helpers/display.js +429 -14
- package/lib/helpers/envcontext.js +23 -8
- package/lib/helpers/formulationParsers.js +351 -0
- package/lib/helpers/logger.js +14 -0
- package/lib/helpers/protobom.js +9 -9
- package/lib/helpers/pythonutils.js +305 -0
- package/lib/helpers/pythonutils.poku.js +469 -0
- package/lib/helpers/utils.js +970 -528
- package/lib/helpers/utils.poku.js +139 -256
- package/lib/helpers/versutils.js +202 -0
- package/lib/helpers/versutils.poku.js +315 -0
- package/lib/helpers/vsixutils.js +1061 -0
- package/lib/helpers/vsixutils.poku.js +2247 -0
- package/lib/managers/binary.js +19 -19
- package/lib/managers/docker.js +108 -1
- package/lib/managers/oci.js +10 -0
- package/lib/managers/piptree.js +4 -10
- package/lib/parsers/npmrc.js +92 -0
- package/lib/parsers/npmrc.poku.js +528 -0
- package/lib/server/openapi.yaml +1 -10
- package/lib/server/server.js +58 -16
- package/lib/server/server.poku.js +123 -144
- package/lib/stages/postgen/annotator.js +1 -1
- package/lib/stages/postgen/auditBom.js +197 -0
- package/lib/stages/postgen/auditBom.poku.js +378 -0
- package/lib/stages/postgen/postgen.js +54 -1
- package/lib/stages/postgen/postgen.poku.js +90 -1
- package/lib/stages/postgen/ruleEngine.js +369 -0
- package/lib/stages/pregen/envAudit.js +299 -0
- package/lib/stages/pregen/envAudit.poku.js +572 -0
- package/lib/stages/pregen/pregen.js +12 -8
- package/lib/third-party/arborist/lib/deepest-nesting-target.js +1 -1
- package/lib/third-party/arborist/lib/node.js +3 -3
- package/lib/third-party/arborist/lib/shrinkwrap.js +1 -1
- package/lib/third-party/arborist/lib/tree-check.js +1 -1
- package/lib/{helpers/validator.js → validator/bomValidator.js} +107 -47
- package/lib/validator/complianceEngine.js +241 -0
- package/lib/validator/complianceEngine.poku.js +168 -0
- package/lib/validator/complianceRules.js +1610 -0
- package/lib/validator/complianceRules.poku.js +328 -0
- package/lib/validator/index.js +222 -0
- package/lib/validator/index.poku.js +144 -0
- package/lib/validator/reporters/annotations.js +121 -0
- package/lib/validator/reporters/console.js +149 -0
- package/lib/validator/reporters/index.js +41 -0
- package/lib/validator/reporters/json.js +37 -0
- package/lib/validator/reporters/sarif.js +184 -0
- package/lib/validator/reporters.poku.js +150 -0
- package/package.json +8 -8
- package/types/bin/sign.d.ts +3 -0
- package/types/bin/sign.d.ts.map +1 -0
- package/types/bin/validate.d.ts +3 -0
- package/types/bin/validate.d.ts.map +1 -0
- package/types/helpers/utils.d.ts +0 -1
- package/types/lib/cli/index.d.ts +49 -52
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/evinser/db.d.ts +34 -0
- package/types/lib/evinser/db.d.ts.map +1 -0
- package/types/lib/evinser/evinser.d.ts +63 -16
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/helpers/bomSigner.d.ts +27 -0
- package/types/lib/helpers/bomSigner.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/azurePipelines.d.ts +17 -0
- package/types/lib/helpers/ciParsers/azurePipelines.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/circleCi.d.ts +17 -0
- package/types/lib/helpers/ciParsers/circleCi.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/common.d.ts +11 -0
- package/types/lib/helpers/ciParsers/common.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/githubActions.d.ts +34 -0
- package/types/lib/helpers/ciParsers/githubActions.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/gitlabCi.d.ts +17 -0
- package/types/lib/helpers/ciParsers/gitlabCi.d.ts.map +1 -0
- package/types/lib/helpers/ciParsers/jenkins.d.ts +17 -0
- package/types/lib/helpers/ciParsers/jenkins.d.ts.map +1 -0
- package/types/lib/helpers/depsUtils.d.ts +21 -0
- package/types/lib/helpers/depsUtils.d.ts.map +1 -0
- package/types/lib/helpers/display.d.ts +111 -11
- package/types/lib/helpers/display.d.ts.map +1 -1
- package/types/lib/helpers/envcontext.d.ts +19 -7
- package/types/lib/helpers/envcontext.d.ts.map +1 -1
- package/types/lib/helpers/formulationParsers.d.ts +50 -0
- package/types/lib/helpers/formulationParsers.d.ts.map +1 -0
- package/types/lib/helpers/logger.d.ts +15 -1
- package/types/lib/helpers/logger.d.ts.map +1 -1
- package/types/lib/helpers/protobom.d.ts +2 -2
- package/types/lib/helpers/pythonutils.d.ts +18 -0
- package/types/lib/helpers/pythonutils.d.ts.map +1 -0
- package/types/lib/helpers/utils.d.ts +532 -128
- package/types/lib/helpers/utils.d.ts.map +1 -1
- package/types/lib/helpers/versutils.d.ts +8 -0
- package/types/lib/helpers/versutils.d.ts.map +1 -0
- package/types/lib/helpers/vsixutils.d.ts +130 -0
- package/types/lib/helpers/vsixutils.d.ts.map +1 -0
- package/types/lib/managers/docker.d.ts +12 -31
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +11 -1
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/managers/piptree.d.ts.map +1 -1
- package/types/lib/parsers/npmrc.d.ts +26 -0
- package/types/lib/parsers/npmrc.d.ts.map +1 -0
- package/types/lib/server/server.d.ts +21 -2
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/auditBom.d.ts +20 -0
- package/types/lib/stages/postgen/auditBom.d.ts.map +1 -0
- package/types/lib/stages/postgen/postgen.d.ts +8 -1
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/stages/postgen/ruleEngine.d.ts +18 -0
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -0
- package/types/lib/stages/pregen/envAudit.d.ts +8 -0
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -0
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
- package/types/lib/{helpers/validator.d.ts → validator/bomValidator.d.ts} +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -0
- package/types/lib/validator/complianceEngine.d.ts +66 -0
- package/types/lib/validator/complianceEngine.d.ts.map +1 -0
- package/types/lib/validator/complianceRules.d.ts +70 -0
- package/types/lib/validator/complianceRules.d.ts.map +1 -0
- package/types/lib/validator/index.d.ts +70 -0
- package/types/lib/validator/index.d.ts.map +1 -0
- package/types/lib/validator/reporters/annotations.d.ts +31 -0
- package/types/lib/validator/reporters/annotations.d.ts.map +1 -0
- package/types/lib/validator/reporters/console.d.ts +30 -0
- package/types/lib/validator/reporters/console.d.ts.map +1 -0
- package/types/lib/validator/reporters/index.d.ts +21 -0
- package/types/lib/validator/reporters/index.d.ts.map +1 -0
- package/types/lib/validator/reporters/json.d.ts +11 -0
- package/types/lib/validator/reporters/json.d.ts.map +1 -0
- package/types/lib/validator/reporters/sarif.d.ts +16 -0
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -0
- package/lib/helpers/db.js +0 -162
- package/types/helpers/db.d.ts +0 -35
- package/types/helpers/db.d.ts.map +0 -1
- package/types/lib/helpers/db.d.ts +0 -35
- package/types/lib/helpers/db.d.ts.map +0 -1
- package/types/lib/helpers/validator.d.ts.map +0 -1
- package/types/managers/binary.d.ts +0 -37
- package/types/managers/binary.d.ts.map +0 -1
- package/types/managers/docker.d.ts +0 -56
- package/types/managers/docker.d.ts.map +0 -1
- package/types/managers/oci.d.ts +0 -2
- package/types/managers/oci.d.ts.map +0 -1
- package/types/managers/piptree.d.ts +0 -2
- package/types/managers/piptree.d.ts.map +0 -1
- package/types/server/server.d.ts +0 -34
- package/types/server/server.d.ts.map +0 -1
- package/types/stages/postgen/annotator.d.ts +0 -27
- package/types/stages/postgen/annotator.d.ts.map +0 -1
- package/types/stages/postgen/postgen.d.ts +0 -51
- package/types/stages/postgen/postgen.d.ts.map +0 -1
- package/types/stages/pregen/pregen.d.ts +0 -59
- package/types/stages/pregen/pregen.d.ts.map +0 -1
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Filter and enhance BOM post generation.
|
|
3
|
-
*
|
|
4
|
-
* @param {Object} bomNSData BOM with namespaces object
|
|
5
|
-
* @param {Object} options CLI options
|
|
6
|
-
*
|
|
7
|
-
* @returns {Object} Modified bomNSData
|
|
8
|
-
*/
|
|
9
|
-
export function postProcess(bomNSData: any, options: any): any;
|
|
10
|
-
/**
|
|
11
|
-
* Apply additional metadata based on components
|
|
12
|
-
*
|
|
13
|
-
* @param {Object} bomJson BOM JSON Object
|
|
14
|
-
* @param {Object} options CLI options
|
|
15
|
-
*
|
|
16
|
-
* @returns {Object} Filtered BOM JSON
|
|
17
|
-
*/
|
|
18
|
-
export function applyMetadata(bomJson: any, options: any): any;
|
|
19
|
-
/**
|
|
20
|
-
* Apply definitions.standards based on options
|
|
21
|
-
*
|
|
22
|
-
* @param {Object} bomJson BOM JSON Object
|
|
23
|
-
* @param {Object} options CLI options
|
|
24
|
-
*
|
|
25
|
-
* @returns {Object} Filtered BOM JSON
|
|
26
|
-
*/
|
|
27
|
-
export function applyStandards(bomJson: any, options: any): any;
|
|
28
|
-
/**
|
|
29
|
-
* Filter BOM based on options
|
|
30
|
-
*
|
|
31
|
-
* @param {Object} bomJson BOM JSON Object
|
|
32
|
-
* @param {Object} options CLI options
|
|
33
|
-
*
|
|
34
|
-
* @returns {Object} Filtered BOM JSON
|
|
35
|
-
*/
|
|
36
|
-
export function filterBom(bomJson: any, options: any): any;
|
|
37
|
-
/**
|
|
38
|
-
* Clean up
|
|
39
|
-
*/
|
|
40
|
-
export function cleanupEnv(_options: any): void;
|
|
41
|
-
export function cleanupTmpDir(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Annotate the document with annotator
|
|
44
|
-
*
|
|
45
|
-
* @param {Object} bomJson BOM JSON Object
|
|
46
|
-
* @param {Object} options CLI options
|
|
47
|
-
*
|
|
48
|
-
* @returns {Object} Annotated BOM JSON
|
|
49
|
-
*/
|
|
50
|
-
export function annotate(bomJson: any, options: any): any;
|
|
51
|
-
//# sourceMappingURL=postgen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postgen.d.ts","sourceRoot":"","sources":["../../../lib/stages/postgen/postgen.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,+DAmBC;AAED;;;;;;;GAOG;AACH,+DA4HC;AAED;;;;;;;GAOG;AACH,gEAmCC;AAkED;;;;;;;GAOG;AACH,2DAqKC;AAED;;GAEG;AACH,gDAIC;AAED,sCAIC;AAMD;;;;;;;GAOG;AACH,0DAuHC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Method to prepare the build environment for BOM generation purposes.
|
|
3
|
-
*
|
|
4
|
-
* @param {String} filePath Path
|
|
5
|
-
* @param {Object} options CLI options
|
|
6
|
-
*/
|
|
7
|
-
export function prepareEnv(filePath: string, options: any): void;
|
|
8
|
-
/**
|
|
9
|
-
* Method to prepare sdkman build environment for BOM generation purposes.
|
|
10
|
-
*
|
|
11
|
-
* @param {String} projectType Project type
|
|
12
|
-
*/
|
|
13
|
-
export function prepareSdkmanBuild(projectType: string): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Method to check and prepare the environment for python
|
|
16
|
-
*
|
|
17
|
-
* @param {String} _filePath Path
|
|
18
|
-
* @param {Object} options CLI Options
|
|
19
|
-
*/
|
|
20
|
-
export function preparePythonEnv(_filePath: string, options: any): void;
|
|
21
|
-
/**
|
|
22
|
-
* Method to check and prepare the environment for node
|
|
23
|
-
*
|
|
24
|
-
* @param {String} filePath Path
|
|
25
|
-
* @param {Object} options CLI Options
|
|
26
|
-
*/
|
|
27
|
-
export function prepareNodeEnv(filePath: string, options: any): void;
|
|
28
|
-
/**
|
|
29
|
-
* If NVM_DIR is in path, however nvm command is not loaded.
|
|
30
|
-
* it is possible that required nodeVersion is not installed.
|
|
31
|
-
* This function loads nvm and install the nodeVersion
|
|
32
|
-
*
|
|
33
|
-
* @param {String} nodeVersion required version number
|
|
34
|
-
*
|
|
35
|
-
* @returns {Boolean} true if successful, otherwise false
|
|
36
|
-
*/
|
|
37
|
-
export function tryLoadNvmAndInstallTool(nodeVersion: string): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* This method installs and create package-lock.json
|
|
40
|
-
*
|
|
41
|
-
* @param {String} filePath Path
|
|
42
|
-
* @param {String} nvmNodePath Path to node version in nvm
|
|
43
|
-
*/
|
|
44
|
-
export function doNpmInstall(filePath: string, nvmNodePath: string): void;
|
|
45
|
-
/**
|
|
46
|
-
* Method to check and build the swift project
|
|
47
|
-
*
|
|
48
|
-
* @param {String} filePath Path
|
|
49
|
-
* @param {Object} options CLI Options
|
|
50
|
-
*/
|
|
51
|
-
export function prepareSwiftEnv(filePath: string, options: any): void;
|
|
52
|
-
/**
|
|
53
|
-
* Method to check and prepare the environment for Ruby projects
|
|
54
|
-
*
|
|
55
|
-
* @param {String} filePath Path
|
|
56
|
-
* @param {Object} options CLI Options
|
|
57
|
-
*/
|
|
58
|
-
export function prepareRubyEnv(filePath: string, options: any): void;
|
|
59
|
-
//# sourceMappingURL=pregen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pregen.d.ts","sourceRoot":"","sources":["../../../lib/stages/pregen/pregen.js"],"names":[],"mappings":"AAgCA;;;;;GAKG;AACH,iEAkBC;AAED;;;;GAIG;AACH,iEASC;AAED;;;;;GAKG;AACH,wEAyCC;AAED;;;;;GAKG;AACH,qEAyDC;AAED;;;;;;;;GAQG;AACH,uEAmBC;AAED;;;;;GAKG;AACH,0EAyCC;AAED;;;;;GAKG;AACH,sEA6EC;AAED;;;;;GAKG;AACH,qEA8PC"}
|