@cdxgen/cdxgen 13.4.0 → 13.5.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 +7 -7
- package/bin/cdxgen-secure.js +15 -0
- package/bin/cdxgen.js +25 -5
- package/bin/evinse.js +5 -0
- package/bin/hbom.js +15 -7
- package/bin/repl.js +29 -0
- package/data/cbomosdb-queries.json +13 -1
- package/data/component-tags.json +8 -0
- package/data/queries-darwin.json +25 -1
- package/data/queries-win.json +19 -1
- package/data/queries.json +41 -0
- package/data/remediations.json +283 -1
- package/data/rules/cbom-security.yaml +235 -4
- package/data/rules/go-binaries.yaml +46 -0
- package/data/rules/golem-go.yaml +80 -0
- package/data/rules/hbom-compliance.yaml +40 -22
- package/data/rules/hbom-performance.yaml +7 -1
- package/data/rules/host-topology.yaml +1 -1
- package/data/rules/obom-runtime.yaml +31 -2
- package/data/rules/php-runtime.yaml +143 -0
- package/lib/audit/index.js +14 -0
- package/lib/cli/bomAssembly.js +28 -3
- package/lib/cli/cliOptions.js +110 -3
- package/lib/cli/index.js +73 -4
- package/lib/cli/jvmBom.js +126 -20
- package/lib/cli/managedBom.js +711 -71
- package/lib/cli/nativeBom.js +225 -28
- package/lib/core/env.js +30 -8
- package/lib/core/fs.js +28 -19
- package/lib/core/httpClient.js +74 -45
- package/lib/core/projectConfig.js +1 -0
- package/lib/core/projectTooling.js +97 -0
- package/lib/core/propertySanitizer.js +72 -0
- package/lib/ecosystems/golem.js +550 -6
- package/lib/ecosystems/gradleutils.js +30 -20
- package/lib/ecosystems/parsers-dotnet.js +117 -18
- package/lib/ecosystems/parsers-go.js +1090 -367
- package/lib/ecosystems/parsers-jvm.js +259 -17
- package/lib/ecosystems/parsers-misc.js +229 -44
- package/lib/ecosystems/parsers-python.js +11 -10
- package/lib/ecosystems/rubyutils.js +6 -3
- package/lib/ecosystems/rusi.js +10 -0
- package/lib/ecosystems/scalacliutils.js +2 -1
- package/lib/ecosystems/scalasem.js +3 -1
- package/lib/evinser/evinser.js +126 -18
- package/lib/evinser/swiftsem.js +68 -5
- package/lib/inventory/agentSkillSpec.js +17 -0
- package/lib/inventory/apkInstalledDb.js +243 -0
- package/lib/inventory/atomUtils.js +33 -0
- package/lib/inventory/auditCategories.js +3 -3
- package/lib/inventory/cacheDir.js +52 -9
- package/lib/inventory/certificates.js +2371 -0
- package/lib/inventory/communityAiConfigParser.js +4 -9
- package/lib/inventory/deps.js +6 -4
- package/lib/inventory/display.js +200 -3
- package/lib/inventory/dosai.js +500 -58
- package/lib/inventory/dynamic.js +45 -3
- package/lib/inventory/envcontext.js +168 -5
- package/lib/inventory/evidenceUtils.js +436 -23
- package/lib/inventory/formulationParsers.js +3 -2
- package/lib/inventory/goBuildInfo.js +140 -0
- package/lib/inventory/hbom.js +67 -7
- package/lib/inventory/hbomAnalysis.js +16 -0
- package/lib/inventory/hostTopology.js +21 -0
- package/lib/inventory/osPackagePurl.js +244 -0
- package/lib/inventory/osPackageResolver.js +89 -87
- package/lib/inventory/osinfo.js +79 -31
- package/lib/inventory/osqueryTransform.js +114 -5
- package/lib/inventory/phpBuildInfo.js +487 -0
- package/lib/inventory/phpHostProbe.js +641 -0
- package/lib/inventory/rootfsCerts.js +426 -0
- package/lib/inventory/source.js +207 -3
- package/lib/inventory/spdx.js +144 -0
- package/lib/inventory/traceRunner.js +5 -1
- package/lib/inventory/tracedCrypto.js +129 -0
- package/lib/managers/binary.js +529 -183
- package/lib/managers/docker.js +166 -12
- package/lib/parsers/email.js +277 -0
- package/lib/parsers/largeJson.js +34 -2
- package/lib/server/server.js +186 -1
- package/lib/stages/postgen/annotator.js +17 -1
- package/lib/stages/postgen/introspection/reflect.js +4 -1
- package/lib/stages/postgen/postgen.js +5 -5
- package/lib/stages/postgen/ruleEngine.js +58 -1
- package/lib/stages/postgen/specVersionCompat.js +30 -0
- package/lib/stages/pregen/pregen.js +117 -5
- package/lib/validator/bomValidator.js +26 -5
- package/lib/validator/generated/runtime.mjs +13 -0
- package/lib/validator/generated/validate-1.6.mjs +26 -7
- package/lib/validator/generated/validate-1.7.mjs +31 -12
- package/lib/validator/generated/validate-2.0.mjs +30 -11
- package/package.json +17 -17
- package/types/bin/cdxgen-secure.d.ts +3 -0
- package/types/bin/cdxgen-secure.d.ts.map +1 -0
- package/types/bin/repl.d.ts.map +1 -1
- package/types/lib/audit/index.d.ts.map +1 -1
- package/types/lib/cli/bomAssembly.d.ts +9 -2
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +43 -0
- package/types/lib/cli/cliOptions.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/cli/jvmBom.d.ts +20 -0
- package/types/lib/cli/jvmBom.d.ts.map +1 -1
- package/types/lib/cli/managedBom.d.ts.map +1 -1
- package/types/lib/cli/nativeBom.d.ts.map +1 -1
- package/types/lib/core/env.d.ts +18 -2
- package/types/lib/core/env.d.ts.map +1 -1
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/httpClient.d.ts.map +1 -1
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/core/projectTooling.d.ts +41 -0
- package/types/lib/core/projectTooling.d.ts.map +1 -0
- package/types/lib/core/propertySanitizer.d.ts +26 -0
- package/types/lib/core/propertySanitizer.d.ts.map +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts +1 -1
- package/types/lib/ecosystems/golem.d.ts +81 -1
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +10 -8
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-dotnet.d.ts +40 -4
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-go.d.ts +85 -13
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-jvm.d.ts +28 -2
- package/types/lib/ecosystems/parsers-jvm.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +18 -58
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts +4 -3
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/ecosystems/scalacliutils.d.ts.map +1 -1
- package/types/lib/ecosystems/scalasem.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +25 -0
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +10 -0
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/inventory/agentSkillSpec.d.ts +13 -0
- package/types/lib/inventory/agentSkillSpec.d.ts.map +1 -0
- package/types/lib/inventory/apkInstalledDb.d.ts +42 -0
- package/types/lib/inventory/apkInstalledDb.d.ts.map +1 -0
- package/types/lib/inventory/atomUtils.d.ts +14 -0
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/cacheDir.d.ts +12 -4
- package/types/lib/inventory/cacheDir.d.ts.map +1 -1
- package/types/lib/inventory/certificates.d.ts +205 -0
- package/types/lib/inventory/certificates.d.ts.map +1 -0
- package/types/lib/inventory/communityAiConfigParser.d.ts.map +1 -1
- package/types/lib/inventory/deps.d.ts +2 -1
- package/types/lib/inventory/deps.d.ts.map +1 -1
- package/types/lib/inventory/display.d.ts +18 -0
- package/types/lib/inventory/display.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +145 -6
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dynamic.d.ts +6 -1
- package/types/lib/inventory/dynamic.d.ts.map +1 -1
- package/types/lib/inventory/envcontext.d.ts +40 -2
- package/types/lib/inventory/envcontext.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts +29 -10
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/formulationParsers.d.ts.map +1 -1
- package/types/lib/inventory/goBuildInfo.d.ts +10 -0
- package/types/lib/inventory/goBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/hbom.d.ts.map +1 -1
- package/types/lib/inventory/hbomAnalysis.d.ts +10 -0
- package/types/lib/inventory/hbomAnalysis.d.ts.map +1 -1
- package/types/lib/inventory/hostTopology.d.ts.map +1 -1
- package/types/lib/inventory/osPackagePurl.d.ts +99 -0
- package/types/lib/inventory/osPackagePurl.d.ts.map +1 -0
- package/types/lib/inventory/osPackageResolver.d.ts +6 -2
- package/types/lib/inventory/osPackageResolver.d.ts.map +1 -1
- package/types/lib/inventory/osinfo.d.ts +31 -6
- package/types/lib/inventory/osinfo.d.ts.map +1 -1
- package/types/lib/inventory/osqueryTransform.d.ts +51 -0
- package/types/lib/inventory/osqueryTransform.d.ts.map +1 -1
- package/types/lib/inventory/phpBuildInfo.d.ts +142 -0
- package/types/lib/inventory/phpBuildInfo.d.ts.map +1 -0
- package/types/lib/inventory/phpHostProbe.d.ts +35 -0
- package/types/lib/inventory/phpHostProbe.d.ts.map +1 -0
- package/types/lib/inventory/rootfsCerts.d.ts +27 -0
- package/types/lib/inventory/rootfsCerts.d.ts.map +1 -0
- package/types/lib/inventory/source.d.ts +28 -0
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/inventory/spdx.d.ts +15 -0
- package/types/lib/inventory/spdx.d.ts.map +1 -1
- package/types/lib/inventory/traceRunner.d.ts +4 -1
- package/types/lib/inventory/traceRunner.d.ts.map +1 -1
- package/types/lib/inventory/tracedCrypto.d.ts +22 -0
- package/types/lib/inventory/tracedCrypto.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +10 -0
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +12 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/parsers/email.d.ts +19 -0
- package/types/lib/parsers/email.d.ts.map +1 -0
- package/types/lib/parsers/largeJson.d.ts +13 -0
- package/types/lib/parsers/largeJson.d.ts.map +1 -1
- package/types/lib/server/server.d.ts +8 -0
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/annotator.d.ts.map +1 -1
- package/types/lib/stages/postgen/introspection/reflect.d.ts.map +1 -1
- package/types/lib/stages/postgen/ruleEngine.d.ts +7 -4
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -1
- package/types/lib/stages/postgen/specVersionCompat.d.ts.map +1 -1
- package/types/lib/stages/pregen/pregen.d.ts +14 -1
- package/types/lib/stages/pregen/pregen.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdxgen/cdxgen",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0",
|
|
4
4
|
"description": "Creates CycloneDX Software Bill of Materials (SBOM) from source or container image",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sbom",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"cdx-verify": "bin/verify.js",
|
|
102
102
|
"cdx-sign": "bin/sign.js",
|
|
103
103
|
"cdxgen": "bin/cdxgen.js",
|
|
104
|
-
"cdxgen-secure": "bin/cdxgen.js",
|
|
104
|
+
"cdxgen-secure": "bin/cdxgen-secure.js",
|
|
105
105
|
"cdxi": "bin/repl.js",
|
|
106
106
|
"evinse": "bin/evinse.js",
|
|
107
107
|
"hbom": "bin/hbom.js",
|
|
@@ -144,14 +144,14 @@
|
|
|
144
144
|
"ssri": "14.0.0",
|
|
145
145
|
"tar": "7.5.22",
|
|
146
146
|
"treeverse": "3.0.0",
|
|
147
|
-
"undici": "8.
|
|
147
|
+
"undici": "8.12.3",
|
|
148
148
|
"walk-up-path": "4.0.0",
|
|
149
149
|
"yaml": "2.9.1",
|
|
150
150
|
"yargs": "18.2.0"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
153
|
"@biomejs/biome": "2.5.15",
|
|
154
|
-
"esmock": "2.
|
|
154
|
+
"esmock": "2.8.0",
|
|
155
155
|
"poku": "4.5.0",
|
|
156
156
|
"sinon": "22.1.0",
|
|
157
157
|
"typescript": "^7.0.2"
|
|
@@ -160,20 +160,20 @@
|
|
|
160
160
|
"@appthreat/atom": "3.1.1",
|
|
161
161
|
"@appthreat/atom-parsetools": "1.10.2",
|
|
162
162
|
"@bufbuild/protobuf": "2.16.0",
|
|
163
|
-
"@cdxgen/cdx-hbom": "0.
|
|
163
|
+
"@cdxgen/cdx-hbom": "0.7.0",
|
|
164
164
|
"@cdxgen/cdx-proto": "2.3.0",
|
|
165
|
-
"@cdxgen/cdxgen-plugins-bin": "4.
|
|
166
|
-
"@cdxgen/cdxgen-plugins-bin-darwin-amd64": "4.
|
|
167
|
-
"@cdxgen/cdxgen-plugins-bin-darwin-arm64": "4.
|
|
168
|
-
"@cdxgen/cdxgen-plugins-bin-linux-amd64": "4.
|
|
169
|
-
"@cdxgen/cdxgen-plugins-bin-linux-arm": "4.
|
|
170
|
-
"@cdxgen/cdxgen-plugins-bin-linux-arm64": "4.
|
|
171
|
-
"@cdxgen/cdxgen-plugins-bin-linux-ppc64": "4.
|
|
172
|
-
"@cdxgen/cdxgen-plugins-bin-linuxmusl-amd64": "4.
|
|
173
|
-
"@cdxgen/cdxgen-plugins-bin-linuxmusl-arm64": "4.
|
|
174
|
-
"@cdxgen/cdxgen-plugins-bin-windows-amd64": "4.
|
|
175
|
-
"@cdxgen/cdxgen-plugins-bin-windows-arm64": "4.
|
|
176
|
-
"@cdxgen/safer-exec": "1.1
|
|
165
|
+
"@cdxgen/cdxgen-plugins-bin": "4.2.0",
|
|
166
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-amd64": "4.2.0",
|
|
167
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-arm64": "4.2.0",
|
|
168
|
+
"@cdxgen/cdxgen-plugins-bin-linux-amd64": "4.2.0",
|
|
169
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm": "4.2.0",
|
|
170
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm64": "4.2.0",
|
|
171
|
+
"@cdxgen/cdxgen-plugins-bin-linux-ppc64": "4.2.0",
|
|
172
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-amd64": "4.2.0",
|
|
173
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-arm64": "4.2.0",
|
|
174
|
+
"@cdxgen/cdxgen-plugins-bin-windows-amd64": "4.2.0",
|
|
175
|
+
"@cdxgen/cdxgen-plugins-bin-windows-arm64": "4.2.0",
|
|
176
|
+
"@cdxgen/safer-exec": "1.2.1",
|
|
177
177
|
"body-parser": "2.3.0",
|
|
178
178
|
"compression": "1.8.2",
|
|
179
179
|
"connect": "3.7.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdxgen-secure.d.ts","sourceRoot":"","sources":["../../bin/cdxgen-secure.js"],"names":[],"mappings":""}
|
package/types/bin/repl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../bin/repl.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../bin/repl.js"],"names":[],"mappings":";AAqaA,eAAO,MAAM,UAAU,oCAyEtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/audit/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/audit/index.js"],"names":[],"mappings":"AA8EA,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,UAKpC,CAAC;AAuCF;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,OAAO,EA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;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAH9B,MAAM,EAGwB,GAF5B,MAAM,EAAE,CAgDpB;AAoBD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,SAAS,EAJrC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAIE,EAAE,OAAO,EAH9C,MAG8C,GAF5C,OAAO,CAAC,MAAM,CAAC,CAuJ3B;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAH3B,MAG2B,GAFzB,OAAO,CAAC,MAAM,CAAC,CA0B3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EALnC,MAKmC,EAAE,SAAS,EAJ9C,MAAM,EAIwC,EAAE,MAAM,EAHtD,MAAM,GAAC,IAG+C,GAFpD,IAAI,CAwChB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAwChD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAH9B,MAG8B,GAF5B,MAAM,GAAG,SAAS,CAU9B"}
|
|
@@ -92,8 +92,13 @@ export declare const addLifecyclesSection: (options: Object) => any[];
|
|
|
92
92
|
/**
|
|
93
93
|
* Function to create metadata block
|
|
94
94
|
*
|
|
95
|
+
* @param {Object} [parentComponent] Component the BOM describes
|
|
96
|
+
* @param {Object} [options] CLI options
|
|
97
|
+
* @param {Object} [context] Generator context. `context.metadataProperties`
|
|
98
|
+
* holds facts of a manifest that has no component to carry them, such as the
|
|
99
|
+
* platform data of a composer.lock whose composer.json names no project.
|
|
95
100
|
*/
|
|
96
|
-
export declare function addMetadata(parentComponent?:
|
|
101
|
+
export declare function addMetadata(parentComponent?: Object, options?: Object, context?: Object): {
|
|
97
102
|
timestamp: string;
|
|
98
103
|
tools: {
|
|
99
104
|
components?: object[];
|
|
@@ -314,10 +319,12 @@ export declare function emitAiInventorySummary(aiInventory: object, discoveryPat
|
|
|
314
319
|
* @param {Array} components Components
|
|
315
320
|
* @param {Object} parentComponent Parent component
|
|
316
321
|
* @param {Array} dependencies Dependencies
|
|
322
|
+
* @param {Array} [metadataProperties] Properties for the metadata block, from
|
|
323
|
+
* generators whose manifest has no component to carry them
|
|
317
324
|
*
|
|
318
325
|
* @returns {Object} Object including BOM Json
|
|
319
326
|
*/
|
|
320
|
-
export declare function dedupeBom(options: Object, components: any[], parentComponent: Object, dependencies: any[]): Object;
|
|
327
|
+
export declare function dedupeBom(options: Object, components: any[], parentComponent: Object, dependencies: any[], metadataProperties?: any[]): Object;
|
|
321
328
|
/**
|
|
322
329
|
* Checks whether the user explicitly selected a project type alias that
|
|
323
330
|
* belongs to the given base project type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bomAssembly.d.ts","sourceRoot":"","sources":["../../../lib/cli/bomAssembly.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bomAssembly.d.ts","sourceRoot":"","sources":["../../../lib/cli/bomAssembly.js"],"names":[],"mappings":"AAiEA;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,aAJ7B,MAAM,qBACN,MAAM,EAAE,KACN,OAsBZ,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAFf,MAG8E,CAAC;AAEzF;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,0CAH9B,MAAM;;;;;CAwChB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,YAJ1B,MAAM,KACJ,MAAM,GAAC,SAyBnB,CAAC;AA8GF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,YALjB,MAAM,YACN,MAAM,KACJ;IAAE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CA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
37
|
* @returns {boolean} True when the user explicitly set this flag
|
|
38
38
|
*/
|
|
39
39
|
export declare function isUserProvided(value: any, yaDefault: any): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The value the operator gave an option on the command line or through its
|
|
42
|
+
* CDXGEN_* environment variable. yargs also fills options in from defaults
|
|
43
|
+
* and from a config file, which cannot be told apart in its output.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} option kebab-case option name
|
|
46
|
+
* @param {object} [context]
|
|
47
|
+
* @param {string[]} [context.argv] Raw command-line arguments
|
|
48
|
+
* @param {object} [context.env] Environment variables
|
|
49
|
+
* @param {boolean} [context.boolean] Read the option as a boolean flag
|
|
50
|
+
* @returns {string|boolean|undefined} The operator's value, or undefined
|
|
51
|
+
*/
|
|
52
|
+
export declare function operatorOptionChoice(option: string, { argv, env, boolean }?: {
|
|
53
|
+
argv?: string[];
|
|
54
|
+
env?: object;
|
|
55
|
+
boolean?: boolean;
|
|
56
|
+
}): string | boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Make the operator's choice about running the scanned project's own code
|
|
59
|
+
* final. A config file is read from the working directory, which is usually
|
|
60
|
+
* the scanned project, so it carries that project's trust. Neither the config
|
|
61
|
+
* file nor a profile or lifecycle may turn installs on when the operator
|
|
62
|
+
* disabled them, and secure mode keeps installs off unless the operator
|
|
63
|
+
* passes --install-deps. Introspection keeps the project's build tools
|
|
64
|
+
* running with installs off, which is likewise the operator's decision, so
|
|
65
|
+
* introspection asked for only by the config file does not do that.
|
|
66
|
+
*
|
|
67
|
+
* **Mutates `options` in place.**
|
|
68
|
+
*
|
|
69
|
+
* @param {object} options The options object, after applyAdvancedOptions
|
|
70
|
+
* @param {object} [context]
|
|
71
|
+
* @param {object} [context.projectConfig] Sanitized config file contents
|
|
72
|
+
* @param {boolean} [context.isSecureMode] Whether cdxgen runs in secure mode
|
|
73
|
+
* @param {string[]} [context.argv] Raw command-line arguments
|
|
74
|
+
* @param {object} [context.env] Environment variables
|
|
75
|
+
* @returns {void}
|
|
76
|
+
*/
|
|
77
|
+
export declare function applyOperatorToolingChoice(options: object, context?: {
|
|
78
|
+
projectConfig?: object;
|
|
79
|
+
isSecureMode?: boolean;
|
|
80
|
+
argv?: string[];
|
|
81
|
+
env?: object;
|
|
82
|
+
}): void;
|
|
40
83
|
/**
|
|
41
84
|
* Combine the custom metadata properties of every source (discussion 4391):
|
|
42
85
|
* the `--metadata-property` flag, the CDXGEN_METADATA_PROPERTY and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliOptions.d.ts","sourceRoot":"","sources":["../../../lib/cli/cliOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"cliOptions.d.ts","sourceRoot":"","sources":["../../../lib/cli/cliOptions.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAyBH;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAJpC,MAIoC,EAAE,WAAW,AAHzD,CACA,EADQ,MAG4D,GAF1D,MAAM,GAAC,IAAI,CAoBvB;AA4CD;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAJzB,GAIyB,EAAE,SAAS,EAHpC,GAGoC,GAFlC,OAAO,CAInB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EARG,MAQH,EACN,EAAE,IAA4B,EAAE,GAAiB,EAAE,OAAe,EAAE,AARnE,CAIA,EAHA;IAA2B,IAAI,AAA/B,CACA,EADQ,MAAM,EAAE,CAChB;IAAyB,GAAG,AAA5B,CACA,EADQ,MAAM,CACd;IAA0B,OAAO,AAAjC,CACA,EADQ,OAAO,CACf;CAIwE,GAJ9D,MAAM,GAAC,OAAO,GAAC,SAAS,CA4CpC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EARvC,MAQuC,EAAE,OAAO,AAPxD,CAKA,EAJA;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AAC,OAAO,EALjC,MAKiC,EAAE,OAAO,AAJlD,CAEA,EADA;IAA0B,YAAY,AAAtC,CACA,EADQ,OAAO,CACf;CAEuD,GAF7C,cAAc,EAAE,CA2I5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAd9B,MAc8B,EAAE,OAAO,EAZ/C;IAAwB,kBAAkB,EAAlC,MAAM,CACd;IAAwB,QAAQ,EAAxB,MAAM,CACd;IAAyB,cAAc,EAA/B,OAAO,CACf;IAAyB,kBAAkB,EAAnC,OAAO,CAEf;IAA0B,QAAQ,AAAlC,CACA,EADQ,OAAO,CACf;IAA0B,YAAY,AAAtC,CACA,EADQ,OAAO,CACf;IAAyB,aAAa,AAAtC,CAGA,EAHQ,MAAM,CAGd;CAE+C,GAFrC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,cAAc,EAAE,CAAA;CAAE,CA+B3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"AAgFA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAyCnE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA0C1D,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,UAAU,EACV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AM,GAAC,SAAS,CAAC,CAsgBrC;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAJ3B,MAI2B,EAAE,OAAO,EAHpC,MAGoC,GAFlC,OAAO,CAAC,MAAM,CAAC,CAsB3B;AAED;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAJzB,MAIyB,EAAE,OAAO,EAHlC,MAGkC,GAFhC,OAAO,CAAC,MAAM,CAAC,CAa3B;AAgYD;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAAC,IAAI,EALzB,MAKyB,EAAE,WAAW,EAJtC,MAIsC,GAHrC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CA+FjD"}
|
|
@@ -66,6 +66,26 @@ export declare function createJarBom(path: string, options: Object): Object;
|
|
|
66
66
|
* @returns {string[]} List of sbt project ids
|
|
67
67
|
*/
|
|
68
68
|
export declare function discoverSbtProjectsFromCmd(basePath: string, sbtCmd: string, env: Object, launcherArgs?: string[]): string[];
|
|
69
|
+
/**
|
|
70
|
+
* Read one pom.xml without running Maven: the module it declares and its
|
|
71
|
+
* direct dependencies. Versions resolve from the pom's properties and
|
|
72
|
+
* dependencyManagement and from parent poms inside the scanned directory.
|
|
73
|
+
* Versions that an imported BOM or a parent outside the directory manages
|
|
74
|
+
* stay empty, and transitive dependencies are unknown.
|
|
75
|
+
*
|
|
76
|
+
* No dependency edges are produced. The build-fidelity rules (BF-JVM-001,
|
|
77
|
+
* BF-GEN-001) recognise a pom read without Maven by its missing graph, and a
|
|
78
|
+
* graph of direct edges alone would pass for a resolved one.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} pomFile pom.xml to read
|
|
81
|
+
* @param {string} rootPath Scanned directory
|
|
82
|
+
* @param {Map} [cache] Parent pom results shared by the poms of one scan
|
|
83
|
+
* @returns {{moduleComponent: Object|undefined, pkgList: Object[]}}
|
|
84
|
+
*/
|
|
85
|
+
export declare function readMavenModuleStatically(pomFile: string, rootPath: string, cache?: Map<any, any>): {
|
|
86
|
+
moduleComponent: Object | undefined;
|
|
87
|
+
pkgList: Object[];
|
|
88
|
+
};
|
|
69
89
|
/**
|
|
70
90
|
* Function to create bom string for Java projects
|
|
71
91
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jvmBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jvmBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jvmBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jvmBom.js"],"names":[],"mappings":"AA4HA;;;;;GAKG;AACH,eAAO,IAAI,gBAAgB,EAFjB,MAIsD,CAAC;AAUjE;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,EAHrB,MAQT,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,EAHhB,MAIqE,CAAC;AAuDhF;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAL3C,MAAM,EAKqC,EAAE,KAAK,AAJ1D,CAEA,EAFQ,MAIuD,GAFrD,OAAO,CAAC,MAAM,CAAC,CA2B3B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,eAAe,EAHrC,MAGqC,GAFnC,GAAG,CAAC,MAAM,CAAC,CAwBvB;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAL5B,MAK4B,EAAE,OAAO,EAJrC,MAIqC,GAFnC,MAAM,CAmFlB;AAiCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAPC,MAOD,EACR,MAAM,EAPG,MAOH,EACN,GAAG,EAPM,MAON,EACH,YAAY,AAPX,CACA,EADQ,MAAM,EAOE,GANN,MAAM,EAAE,CAwEpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EALtC,MAKsC,EAAE,QAAQ,EAJhD,MAIgD,EAAE,KAAK,AAH/D,CACA,eAE+D,GAFrD;IAAC,eAAe,EAAE,MAAM,GAAC,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,CAyClE;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CAonE3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/managedBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"managedBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/managedBom.js"],"names":[],"mappings":"AAwKA;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,QAJ5B,MAAM,YACN,MAAM,KACJ,OAMZ,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,QAJ1B,MAAM,YACN,MAAM,KACJ,OAeZ,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,IAAI,QAAA,EAAE,OAAO,EAHhC,MAGgC,GAF9B,MAAM,GAAG,IAAI,CAyEzB;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC,OAAO,CAAC,MAAM,CAAC,CAitB3B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAJzB,MAIyB,EAAE,OAAO,EAHlC,MAGkC,GAFhC,MAAM,CAyBlB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,MAAM,CAsBlB;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAJhC,MAIgC,EAAE,OAAO,EAHzC,MAGyC,GAFvC,OAAO,CAAC,MAAM,CAAC,CA2C3B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAJvB,MAIuB,EAAE,OAAO,EAHhC,MAGgC,GAF9B,MAAM,CA0BlB;AAwBD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAJtB,MAIsB,EAAE,OAAO,EAH/B,MAG+B,GAF7B,MAAM,CAmOlB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CA8U3B;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CAktBrC;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAJpC,MAIoC,EAAE,OAAO,EAH7C,MAG6C,GAF3C,OAAO,CAAC,MAAM,CAAC,CAyQ3B;AA6ND;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAJpB,MAIoB,EAAE,OAAO,EAH7B,MAG6B,GAF3B,MAAM,CA2DlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAJvB,MAIuB,EAAE,OAAO,EAHhC,MAGgC,GAF9B,MAAM,CAmClB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAJlC,MAIkC,EAAE,OAAO,EAH3C,MAG2C,GAFzC,OAAO,CAAC,MAAM,CAAC,CA6B3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/nativeBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nativeBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/nativeBom.js"],"names":[],"mappings":"AA8LA;;;;;GAKG;AACH,w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C,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CAoE3B;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAJhC,MAIgC,EAAE,OAAO,EAHzC,MAGyC,GAFvC,OAAO,CAAC,MAAM,CAAC,CAuC3B;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CA0C3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,OAAO,CAAC,MAAM,CAAC,CA2D3B;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAJ9B,MAI8B,EAAE,OAAO,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CAwD3B"}
|
package/types/lib/core/env.d.ts
CHANGED
|
@@ -113,6 +113,10 @@ export declare let CDXGEN_TEMP_DIR: string;
|
|
|
113
113
|
export declare const SWIFT_CMD: string;
|
|
114
114
|
/** Resolved Ruby executable command (RUBY_CMD env var, or "ruby"). */
|
|
115
115
|
export declare const RUBY_CMD: string;
|
|
116
|
+
/** Resolved PHP executable command (PHP_CMD env var, or "php"). */
|
|
117
|
+
export declare const PHP_CMD: string;
|
|
118
|
+
/** Resolved Composer executable command (COMPOSER_CMD env var, or "composer"). */
|
|
119
|
+
export declare const COMPOSER_CMD: string;
|
|
116
120
|
/** Python package components that can be excluded from the generated BOM. */
|
|
117
121
|
export declare const PYTHON_EXCLUDED_COMPONENTS: string[];
|
|
118
122
|
/** Map of base cdxgen project type to the array of accepted alias strings. */
|
|
@@ -211,12 +215,24 @@ export declare function isFeatureEnabled(cliOptions: Object, feature: string): b
|
|
|
211
215
|
* @param {Boolean} defaultStatus Default return value if there are no types provided
|
|
212
216
|
*/
|
|
213
217
|
export declare function hasAnyProjectType(projectTypes: any[], options: Object, defaultStatus?: boolean): any;
|
|
218
|
+
/**
|
|
219
|
+
* Extract the lowercase command name from an invoked command path, without
|
|
220
|
+
* directories or a trailing `.js`, `.cjs`, `.mjs` or `.exe` extension. Both
|
|
221
|
+
* `/` and `\\` separators are handled, so a Windows path is inspected the
|
|
222
|
+
* same way on any host.
|
|
223
|
+
*
|
|
224
|
+
* @param {string} [commandPath] Invoked command path or name
|
|
225
|
+
* @returns {string} Lowercase command name
|
|
226
|
+
*/
|
|
227
|
+
export declare function getCommandName(commandPath?: string): string;
|
|
214
228
|
/**
|
|
215
229
|
* Determine whether the predictive dependency audit should run for the current
|
|
216
230
|
* CLI invocation.
|
|
217
231
|
*
|
|
218
|
-
* OBOM
|
|
219
|
-
*
|
|
232
|
+
* OBOM and HBOM runs (commands named `obom` or `hbom`, including `hbom-slim`)
|
|
233
|
+
* and explicit `-t os` / OS / hardware project types alone keep the direct BOM
|
|
234
|
+
* audit findings but skip the predictive dependency audit. Only the command
|
|
235
|
+
* name is tested, never the directories leading to it.
|
|
220
236
|
*
|
|
221
237
|
* @param {object} options CLI options
|
|
222
238
|
* @param {string} [commandPath] Invoked command path or name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../lib/core/env.js"],"names":[],"mappings":"AAUA,uCAAuC;AACvC,eAAO,MAAM,MAAM,SAAmD,CAAC;AACvE,mCAAmC;AACnC,eAAO,MAAM,KAAK,SAAwC,CAAC;AAC3D,oCAAoC;AACpC,eAAO,MAAM,MAAM,SAA+C,CAAC;AAEnE,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,oBAElC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAIrB,CAAC;AAEX,sJAAsJ;AACtJ,eAAO,MAAM,qBAAqB,SAI/B,CAAC;AAEJ,sIAAsI;AACtI,eAAO,MAAM,sBAAsB,SAElC,CAAC;A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EAAE,IAAI,EAJhC,MAAM,EAI0B,EAAE,OAAO,EAHzC,MAGyC,GAFvC,MAAM,CAyPlB;AAED,6FAA6F;AAC7F,eAAO,MAAM,UAAU,QAEP,CAAC;AAEjB,4GAA4G;AAC5G,eAAO,MAAM,UAAU,QAEJ,CAAC;AAEpB;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,OAAO,EANxB,MAMwB,EAAE,OAAO,EALjC,MAKiC,EAAE,OAAO,GAJ1C,MAI+C,OAwCzD;AA0BD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAFhC,MAAM,GAAC,SAEyB,QAK1C;AA4BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,SAGtC;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EARE,MAQF,EACP,OAAO,EARE,MAQF,EACP,UAAU,SAAA,EACV,UAAU,OAAA,OAmDX;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAFf,MAAM,CAIlB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,IAFZ,MAAM,CAYlB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAJ1B,MAI0B,EAAE,IAAI,EAHhC,MAGgC,GAF9B,OAAO,QAAQ,CAU3B;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,KAAA,EAAE,IAAI,EAHvC,MAGuC,GAFrC,OAAO,CAAC,MAAM,CAAC,CA8B3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../lib/core/httpClient.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"httpClient.d.ts","sourceRoot":"","sources":["../../../lib/core/httpClient.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAU3B,QAAQ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AACH,wBAAgB,oBAAoB,IAFvB,IAAI,CAIhB;AA8VD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,AAJtC,CACA,EADQ,MAImC,YAwC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,wBAAwB,UAKpC,CAAC;
|
|
1
|
+
{"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,wBAAwB,UAKpC,CAAC;AAuEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAJjC,MAIiC,EAAE,SAAS,EAH5C,MAG4C,GAF1C;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAAC,kBAAkB,EAAE,MAAM,EAAE,CAAA;CAAC,CA+CnG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether secure mode is on right now. `isSecureMode` is read once when the
|
|
3
|
+
* modules load, but the `cdxgen-secure` command turns secure mode on later,
|
|
4
|
+
* by setting CDXGEN_SECURE_MODE before the scan starts.
|
|
5
|
+
*
|
|
6
|
+
* @returns {boolean} true when secure mode is on
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSecureModeActive(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the scan may run the scanned project's own build tooling, such as
|
|
11
|
+
* wrapper scripts or build definitions that Maven, Gradle, sbt, Mill, Poetry,
|
|
12
|
+
* PDM, MSBuild, SwiftPM, Leiningen and CocoaPods evaluate.
|
|
13
|
+
*
|
|
14
|
+
* Tooling follows `options.installDeps`, which defaults to off in secure mode
|
|
15
|
+
* when a caller does not set it. Introspection mode exists to observe the
|
|
16
|
+
* project's own toolchain, so it keeps that tooling on even when dependency
|
|
17
|
+
* installation is disabled, as long as the operator asked for it rather than
|
|
18
|
+
* a config file in the scanned project. Secure mode still wins:
|
|
19
|
+
* CDXGEN_INTROSPECT alone must not make a secure-mode scan run the scanned
|
|
20
|
+
* project's code.
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} [options] CLI options
|
|
23
|
+
* @returns {boolean} true when project tooling may run
|
|
24
|
+
*/
|
|
25
|
+
export declare function isProjectToolingAllowed(options?: Object): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Tell the user that a tool was skipped because project tooling is not
|
|
28
|
+
* allowed, and record the matching degradation for the fidelity report.
|
|
29
|
+
* Each skip is reported once per scan, however many manifests it applies to.
|
|
30
|
+
* A skip that only costs evidence, not BOM content, passes no remediation id
|
|
31
|
+
* and is only shown.
|
|
32
|
+
*
|
|
33
|
+
* @param {Object} options CLI options of the scan
|
|
34
|
+
* @param {string|null} remediationId Remediation id from
|
|
35
|
+
* data/remediations.json, or null for a message only
|
|
36
|
+
* @param {string} message Console message shown to the user
|
|
37
|
+
* @param {Object} [fields] Degradation fields (ecosystem, tool, impact, detail)
|
|
38
|
+
* @returns {void}
|
|
39
|
+
*/
|
|
40
|
+
export declare function reportProjectToolingSkipped(options: Object, remediationId: string | null, message: string, fields?: Object): void;
|
|
41
|
+
//# sourceMappingURL=projectTooling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectTooling.d.ts","sourceRoot":"","sources":["../../../lib/core/projectTooling.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,wBAAgB,kBAAkB,IAFrB,OAAO,CAOnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,AAH5C,CACA,EADQ,MAGoC,GAFlC,OAAO,CAanB;AAOD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EARE,MAQF,EACP,aAAa,EARJ,MAAM,GAAC,IAQH,EACb,OAAO,EAPE,MAOF,EACP,MAAM,AAPL,CACA,EADQ,MAOH,GANK,IAAI,CAuBhB"}
|
|
@@ -12,6 +12,32 @@ export declare function sanitizeStructuredValueForBom(value: unknown): unknown;
|
|
|
12
12
|
* @returns {string} sanitized URL
|
|
13
13
|
*/
|
|
14
14
|
export declare function sanitizeBomUrl(value: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Percent-encode what an RFC 3986 URI reference cannot hold as it is, so a
|
|
17
|
+
* route template or URL can be emitted where CycloneDX expects an
|
|
18
|
+
* iri-reference, such as `services[].endpoints[]`. The braces of a route
|
|
19
|
+
* template, spaces, `<>`, `[]` outside an IPv6 host, `|`, `^`, non-ASCII
|
|
20
|
+
* characters and a `%` that starts no escape are encoded:
|
|
21
|
+
* `/users/{id}` becomes `/users/%7Bid%7D`. The scheme and authority of an
|
|
22
|
+
* absolute URL are kept as written, the query and fragment stay a query and
|
|
23
|
+
* fragment, and existing escapes are kept, so encoding twice changes
|
|
24
|
+
* nothing. Nothing is removed; strip credentials with {@link sanitizeBomUrl}
|
|
25
|
+
* first.
|
|
26
|
+
*
|
|
27
|
+
* @param {unknown} value Route template, path or URL
|
|
28
|
+
* @returns {string} The encoded reference
|
|
29
|
+
*/
|
|
30
|
+
export declare function encodeUriReference(value: unknown): string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether a value carries a token shape the BOM sanitizer redacts: cloud
|
|
33
|
+
* access keys, bearer tokens, GitHub, Slack and npm tokens, JWTs and the
|
|
34
|
+
* like. Callers that cannot splice a `[redacted]` marker into the value, such
|
|
35
|
+
* as a URL path segment, use it to drop the value instead.
|
|
36
|
+
*
|
|
37
|
+
* @param {unknown} value Value to check
|
|
38
|
+
* @returns {boolean} true when the value holds an inline credential
|
|
39
|
+
*/
|
|
40
|
+
export declare function hasInlineCredential(value: unknown): boolean;
|
|
15
41
|
/**
|
|
16
42
|
* Sanitize a property value before serializing it into BOM properties.
|
|
17
43
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertySanitizer.d.ts","sourceRoot":"","sources":["../../../lib/core/propertySanitizer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"propertySanitizer.d.ts","sourceRoot":"","sources":["../../../lib/core/propertySanitizer.js"],"names":[],"mappings":"AAkEA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAHxC,OAGwC,GAFtC,OAAO,CAInB;AAyED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAHzB,MAGyB,GAFvB,MAAM,CAIlB;AAWD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAH7B,OAG6B,GAF3B,MAAM,CAsBlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAH9B,OAG8B,GAF5B,OAAO,CAQnB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,KAAK,EAHzC,OAGyC,GAFvC,MAAM,GAAC,OAAO,CAoB1B"}
|
|
@@ -33,9 +33,9 @@ export declare function getCppModules(src: string, options: object, osPkgsList:
|
|
|
33
33
|
"bom-ref": string;
|
|
34
34
|
group?: undefined;
|
|
35
35
|
} | {
|
|
36
|
-
purl?: undefined;
|
|
37
36
|
description?: undefined;
|
|
38
37
|
license?: undefined;
|
|
38
|
+
purl?: undefined;
|
|
39
39
|
"bom-ref"?: undefined;
|
|
40
40
|
group: any;
|
|
41
41
|
name: any;
|
|
@@ -10,7 +10,8 @@ export declare function isGolemGoLanguage(language: string): boolean;
|
|
|
10
10
|
*
|
|
11
11
|
* @param {string} jsonFile Path to the golem JSON report.
|
|
12
12
|
* @returns {object|undefined} Parsed report object, or undefined when the file
|
|
13
|
-
* is missing
|
|
13
|
+
* is missing, cannot be parsed, or holds something other than a JSON object
|
|
14
|
+
* such as `null`.
|
|
14
15
|
*/
|
|
15
16
|
export declare function readGolemJsonFile(jsonFile: string): object | undefined;
|
|
16
17
|
/**
|
|
@@ -57,4 +58,83 @@ export declare function collectGolemEvidence(golemReport?: object, components?:
|
|
|
57
58
|
metadataProperties: Array<object>;
|
|
58
59
|
purlLocationMap: Record<string, any[]>;
|
|
59
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Normalise a Go route path to the placeholder spelling OpenAPI — and
|
|
63
|
+
* therefore the rest of the services a BOM carries — uses. gin, echo and
|
|
64
|
+
* fiber write `:id`, gin writes `*filepath`, chi and gorilla/mux write `{id}`
|
|
65
|
+
* or `{id:[0-9]+}`, and Go 1.22's net/http patterns write `{id...}`; all
|
|
66
|
+
* become `{id}`. Braces are matched by depth, so a regular expression with
|
|
67
|
+
* its own braces or slashes (`{code:[0-9]{3}}`, `{rest:[a-z/]+}`) stays one
|
|
68
|
+
* variable. A fiber constraint or optional marker (`:id<int>`, `:name?`) is
|
|
69
|
+
* dropped, and net/http's `{$}` is removed. A `:` or `*` placeholder is only
|
|
70
|
+
* recognised at the start of a segment — or, for fiber, after a `-` or `.` —
|
|
71
|
+
* so a literal colon such as `/time/09:30` is left alone. Values that do not
|
|
72
|
+
* start with `/` are returned as they are, and so is echo's catch-all, whose
|
|
73
|
+
* bare `*` names no placeholder.
|
|
74
|
+
*
|
|
75
|
+
* @param {string} routePath Path a golem endpoint reports
|
|
76
|
+
* @param {string} [framework] Framework the route was registered with
|
|
77
|
+
* @returns {string} The normalised path
|
|
78
|
+
*/
|
|
79
|
+
export declare function normalizeGolemRoutePath(routePath: string, framework?: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* Split a route golem reports into the `[METHOD ][HOST]/PATH` parts of a Go
|
|
82
|
+
* 1.22 net/http ServeMux pattern. golem puts a `/` in front of the pattern it
|
|
83
|
+
* read, so `GET /items/{id}` arrives as `/GET /items/{id}` and
|
|
84
|
+
* `GET example.com/items` as `/GET example.com/items`. A method followed by a
|
|
85
|
+
* space or tab is split off, and so is a host between the method and the
|
|
86
|
+
* path. Without a method, only a value that starts with `/` is a route: the
|
|
87
|
+
* `:8080` a listener reports and the `GET` that a gorilla/mux
|
|
88
|
+
* `.Methods("GET")` call leaves behind are not, and give undefined. A host
|
|
89
|
+
* pattern without a method reaches golem's report as a plain path
|
|
90
|
+
* (`/example.com/items`) and stays one.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} routePath Path a golem endpoint reports
|
|
93
|
+
* @returns {{method: (string|undefined), host: (string|undefined), path: string}|undefined}
|
|
94
|
+
* The parts, or undefined when the value is not a route
|
|
95
|
+
*/
|
|
96
|
+
export declare function parseGolemRoutePattern(routePath: string): {
|
|
97
|
+
method: (string | undefined);
|
|
98
|
+
host: (string | undefined);
|
|
99
|
+
path: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Reduce an outbound URL golem reports to what is safe to keep in a BOM:
|
|
103
|
+
* scheme, host and path, without userinfo, query, fragment or `;name=value`
|
|
104
|
+
* path parameters such as `;jsessionid=` and `;token=`. Webhook and bot URLs
|
|
105
|
+
* that authenticate by their path — Slack, Discord, Teams, Zapier, IFTTT,
|
|
106
|
+
* Telegram — keep only their route (`https://hooks.slack.com/services`), and a
|
|
107
|
+
* path segment holding a token shape the BOM sanitizer recognises ends the
|
|
108
|
+
* path there. Undefined when the value is not a URL with a host.
|
|
109
|
+
*
|
|
110
|
+
* @param {string} value URL golem reports
|
|
111
|
+
* @returns {string|undefined} The sanitised URL
|
|
112
|
+
*/
|
|
113
|
+
export declare function sanitizeGolemEndpointUrl(value: string): string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Project the services and API endpoints of a golem report into evinse's
|
|
116
|
+
* service map, so a Go `evinse`/`saasbom` run lists its services the way the
|
|
117
|
+
* kosi (Kotlin) and dosai (.NET) collectors already do (#4498).
|
|
118
|
+
*
|
|
119
|
+
* golem rolls one service up per server it saw — a `gin` engine, a net/http
|
|
120
|
+
* listener on `:8080` — and lists the routes registered on it, each with its
|
|
121
|
+
* HTTP method and framework. Route paths are normalised to OpenAPI
|
|
122
|
+
* placeholders and Go 1.22 ServeMux patterns are split into method, host and
|
|
123
|
+
* path; entries that are not routes are skipped. It also rolls the outbound
|
|
124
|
+
* hosts the source calls into services of `kind: "external"`; those carry
|
|
125
|
+
* `x-trust-boundary: true`, since a host the application calls sits outside
|
|
126
|
+
* its own trust boundary, and their URLs are sanitised before they become
|
|
127
|
+
* endpoints. Every endpoint is percent-encoded to an RFC 3986 reference. The
|
|
128
|
+
* map is keyed by the golem service id, which is unique per server, while
|
|
129
|
+
* `name` carries the display name.
|
|
130
|
+
*
|
|
131
|
+
* HTTP methods are lower-cased to match the property values the OpenAPI flow
|
|
132
|
+
* emits, so a consumer grouping by `cdx:service:httpMethod` sees one value
|
|
133
|
+
* per method.
|
|
134
|
+
*
|
|
135
|
+
* @param {object|null} [golemReport={}] Parsed golem analysis report.
|
|
136
|
+
* @param {Object} [servicesMap={}] Service map to populate.
|
|
137
|
+
* @returns {Object} The service map
|
|
138
|
+
*/
|
|
139
|
+
export declare function collectGolemServices(golemReport?: object | null, servicesMap?: Object): Object;
|
|
60
140
|
//# sourceMappingURL=golem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"golem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/golem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"golem.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/golem.js"],"names":[],"mappings":"AA4mDA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAH/B,MAG+B,GAF7B,OAAO,CAInB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAL/B,MAK+B,GAJ7B,MAAM,GAAC,SAAS,CAgB5B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EALzB,MAKyB,EAAE,UAAU,EAJrC,MAIqC,EAAE,OAAO,AAHtD,CACA,EADQ,MAG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Allowed } from "../core/projectTooling.js";
|
|
2
|
+
export { isProjectToolingAllowed };
|
|
1
3
|
/**
|
|
2
4
|
* Method to return the gradle command to use.
|
|
3
5
|
*
|
|
4
6
|
* Project-local wrapper scripts (`gradlew`) are attacker-controlled files in
|
|
5
|
-
* the scanned project, so they are only used when
|
|
6
|
-
*
|
|
7
|
-
* used.
|
|
7
|
+
* the scanned project, so they are only used when the project's own tooling
|
|
8
|
+
* may run (see isProjectToolingAllowed); otherwise the system Gradle is used.
|
|
8
9
|
*
|
|
9
10
|
* @param {string} srcPath Path to look for gradlew wrapper
|
|
10
11
|
* @param {string|null} rootPath Root directory to look for gradlew wrapper
|
|
@@ -178,8 +179,8 @@ _includeCacheDir?: boolean): Promise<Object>;
|
|
|
178
179
|
* Method to return the mill command to use.
|
|
179
180
|
*
|
|
180
181
|
* The project-local `mill` script is an attacker-controlled file in the
|
|
181
|
-
* scanned project, so it is only used when
|
|
182
|
-
* (
|
|
182
|
+
* scanned project, so it is only used when the project's own tooling may run
|
|
183
|
+
* (see isProjectToolingAllowed).
|
|
183
184
|
*
|
|
184
185
|
* @param {string} srcPath Path to look for mill wrapper
|
|
185
186
|
* @param {Object} [options] CLI options (`installDeps` gates wrapper use)
|
|
@@ -221,14 +222,15 @@ export declare function findMillDaemons(rootPath: string): Map<string, Set<numbe
|
|
|
221
222
|
* @param {string} rootPath Scanned tree
|
|
222
223
|
* @param {Map<string, Set<number>>} [runningBefore] Result of
|
|
223
224
|
* {@link findMillDaemons} taken before the scan
|
|
225
|
+
* @param {Object} [options] CLI options
|
|
224
226
|
*/
|
|
225
|
-
export declare function stopMillDaemons(rootPath: string, runningBefore?: Map<string, Set<number
|
|
227
|
+
export declare function stopMillDaemons(rootPath: string, runningBefore?: Map<string, Set<number>>, options?: Object): void;
|
|
226
228
|
/**
|
|
227
229
|
* Method to return the maven command to use.
|
|
228
230
|
*
|
|
229
231
|
* Project-local wrapper scripts (`mvnw`) are attacker-controlled files in the
|
|
230
|
-
* scanned project, so they are only used when
|
|
231
|
-
* (
|
|
232
|
+
* scanned project, so they are only used when the project's own tooling may
|
|
233
|
+
* run (see isProjectToolingAllowed); otherwise the installed Maven is used.
|
|
232
234
|
*
|
|
233
235
|
* @param {string} srcPath Path to look for maven wrapper
|
|
234
236
|
* @param {string} rootPath Root directory to look for maven wrapper
|