@cdxgen/cdxgen 13.2.0 → 13.3.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 +28 -12
- package/bin/cdxgen.js +227 -119
- package/bin/evinse.js +5 -0
- package/bin/sign.js +88 -14
- package/bin/tracebom.js +64 -4
- package/bin/validate.js +29 -7
- package/bin/verify.js +79 -39
- package/data/remediations.json +24 -0
- package/lib/cli/bomAssembly.js +105 -15
- package/lib/cli/cliOptions.js +93 -1
- package/lib/cli/index.js +43 -4
- package/lib/cli/jsBom.js +49 -24
- package/lib/cli/jvmBom.js +46 -12
- package/lib/cli/managedBom.js +112 -41
- package/lib/cli/nativeBom.js +125 -14
- package/lib/core/env.js +5 -6
- package/lib/core/fs.js +174 -6
- package/lib/core/metadataProperties.js +97 -0
- package/lib/core/projectConfig.js +31 -4
- package/lib/ecosystems/bunutils.js +269 -101
- package/lib/ecosystems/caxa.js +434 -2
- package/lib/ecosystems/cmakeResolver.js +66 -0
- package/lib/ecosystems/cppEvidence.js +64 -31
- package/lib/ecosystems/ecosystems.js +19 -8
- package/lib/ecosystems/gradleutils.js +42 -7
- package/lib/ecosystems/jsEvidence.js +19 -20
- package/lib/ecosystems/kosi.js +10 -3
- package/lib/ecosystems/npmutils.js +110 -9
- package/lib/ecosystems/parsers-dotnet.js +51 -10
- package/lib/ecosystems/parsers-go.js +47 -9
- package/lib/ecosystems/parsers-js.js +171 -50
- package/lib/ecosystems/parsers-misc.js +747 -161
- package/lib/ecosystems/parsers-python.js +26 -14
- package/lib/ecosystems/parsers-rust.js +24 -18
- package/lib/ecosystems/rubyutils.js +1426 -166
- package/lib/ecosystems/rusi.js +32 -1
- package/lib/evinser/evinser.js +436 -128
- package/lib/evinser/swiftsem.js +1914 -302
- package/lib/helpers/bomSigner.js +652 -221
- package/lib/inventory/atomUtils.js +568 -31
- package/lib/inventory/cdxrs.js +103 -12
- package/lib/inventory/depsUtils.js +183 -11
- package/lib/inventory/display.js +4 -5
- package/lib/inventory/dosai.js +550 -13
- package/lib/inventory/dynamic.js +39 -1
- package/lib/inventory/evidenceUtils.js +14 -6
- package/lib/inventory/fetchBatch.js +116 -17
- package/lib/inventory/protobom.js +8 -1
- package/lib/inventory/purl.js +152 -3
- package/lib/inventory/sbomDocument.js +2 -70
- package/lib/inventory/source.js +37 -19
- package/lib/inventory/traceRunner.js +210 -21
- package/lib/managers/binary.js +115 -24
- package/lib/managers/docker.js +440 -20
- package/lib/managers/oci.js +39 -1
- package/lib/parsers/cmakeLists.js +452 -0
- package/lib/parsers/largeJson.js +454 -0
- package/lib/parsers/npmrc.js +19 -1
- package/lib/stages/postgen/postgen.js +68 -15
- package/lib/validator/bomValidator.js +6 -16
- package/lib/validator/index.js +48 -10
- package/lib/validator/reporters/console.js +3 -0
- package/lib/validator/reporters/json.js +1 -0
- package/lib/validator/reporters/sarif.js +7 -0
- package/package.json +20 -20
- package/types/lib/cli/bomAssembly.d.ts +2 -1
- package/types/lib/cli/bomAssembly.d.ts.map +1 -1
- package/types/lib/cli/cliOptions.d.ts +33 -1
- package/types/lib/cli/cliOptions.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/cli/jsBom.d.ts.map +1 -1
- 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.map +1 -1
- package/types/lib/core/fs.d.ts +55 -0
- package/types/lib/core/fs.d.ts.map +1 -1
- package/types/lib/core/metadataProperties.d.ts +39 -0
- package/types/lib/core/metadataProperties.d.ts.map +1 -0
- package/types/lib/core/projectConfig.d.ts +6 -2
- package/types/lib/core/projectConfig.d.ts.map +1 -1
- package/types/lib/ecosystems/bunutils.d.ts +12 -5
- package/types/lib/ecosystems/bunutils.d.ts.map +1 -1
- package/types/lib/ecosystems/caxa.d.ts +14 -0
- package/types/lib/ecosystems/caxa.d.ts.map +1 -1
- package/types/lib/ecosystems/cmakeResolver.d.ts +23 -0
- package/types/lib/ecosystems/cmakeResolver.d.ts.map +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts +1 -1
- package/types/lib/ecosystems/cppEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/ecosystems.d.ts.map +1 -1
- package/types/lib/ecosystems/golem.d.ts.map +1 -1
- package/types/lib/ecosystems/gradleutils.d.ts +20 -4
- package/types/lib/ecosystems/gradleutils.d.ts.map +1 -1
- package/types/lib/ecosystems/jsEvidence.d.ts +5 -2
- package/types/lib/ecosystems/jsEvidence.d.ts.map +1 -1
- package/types/lib/ecosystems/kosi.d.ts +13 -0
- package/types/lib/ecosystems/kosi.d.ts.map +1 -1
- package/types/lib/ecosystems/npmutils.d.ts +42 -0
- package/types/lib/ecosystems/npmutils.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-dotnet.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-go.d.ts +10 -0
- package/types/lib/ecosystems/parsers-go.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-js.d.ts +10 -4
- package/types/lib/ecosystems/parsers-js.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-misc.d.ts +67 -3
- package/types/lib/ecosystems/parsers-misc.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-python.d.ts.map +1 -1
- package/types/lib/ecosystems/parsers-rust.d.ts.map +1 -1
- package/types/lib/ecosystems/pythonutils.d.ts +1 -1
- package/types/lib/ecosystems/rubyutils.d.ts +143 -2
- package/types/lib/ecosystems/rubyutils.d.ts.map +1 -1
- package/types/lib/ecosystems/rusi.d.ts +13 -0
- package/types/lib/ecosystems/rusi.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +59 -9
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/evinser/swiftsem.d.ts +280 -15
- package/types/lib/evinser/swiftsem.d.ts.map +1 -1
- package/types/lib/helpers/bomSigner.d.ts +106 -13
- package/types/lib/helpers/bomSigner.d.ts.map +1 -1
- package/types/lib/inventory/atomUtils.d.ts +145 -3
- package/types/lib/inventory/atomUtils.d.ts.map +1 -1
- package/types/lib/inventory/cdxrs.d.ts +8 -3
- package/types/lib/inventory/cdxrs.d.ts.map +1 -1
- package/types/lib/inventory/depsUtils.d.ts +15 -0
- package/types/lib/inventory/depsUtils.d.ts.map +1 -1
- package/types/lib/inventory/display.d.ts.map +1 -1
- package/types/lib/inventory/dosai.d.ts +64 -1
- package/types/lib/inventory/dosai.d.ts.map +1 -1
- package/types/lib/inventory/dynamic.d.ts.map +1 -1
- package/types/lib/inventory/evidenceUtils.d.ts.map +1 -1
- package/types/lib/inventory/fetchBatch.d.ts.map +1 -1
- package/types/lib/inventory/plugins.d.ts.map +1 -1
- package/types/lib/inventory/protobom.d.ts.map +1 -1
- package/types/lib/inventory/purl.d.ts +71 -2
- package/types/lib/inventory/purl.d.ts.map +1 -1
- package/types/lib/inventory/sbomDocument.d.ts.map +1 -1
- package/types/lib/inventory/source.d.ts.map +1 -1
- package/types/lib/inventory/traceRunner.d.ts +47 -1
- package/types/lib/inventory/traceRunner.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +30 -1
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts +29 -0
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/managers/oci.d.ts +14 -0
- package/types/lib/managers/oci.d.ts.map +1 -1
- package/types/lib/parsers/cmakeLists.d.ts +76 -0
- package/types/lib/parsers/cmakeLists.d.ts.map +1 -0
- package/types/lib/parsers/largeJson.d.ts +52 -0
- package/types/lib/parsers/largeJson.d.ts.map +1 -0
- package/types/lib/parsers/npmrc.d.ts +5 -0
- package/types/lib/parsers/npmrc.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
- package/types/lib/validator/index.d.ts +10 -1
- package/types/lib/validator/index.d.ts.map +1 -1
- package/types/lib/validator/reporters/console.d.ts.map +1 -1
- package/types/lib/validator/reporters/json.d.ts.map +1 -1
- package/types/lib/validator/reporters/sarif.d.ts.map +1 -1
package/lib/validator/index.js
CHANGED
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
* wrapper (`bin/validate.js`) is responsible for reading the input BOM.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
loadSharedSecret,
|
|
16
|
+
verifyBom,
|
|
17
|
+
verifyNode,
|
|
18
|
+
} from "../helpers/bomSigner.js";
|
|
15
19
|
import {
|
|
16
20
|
validateBom,
|
|
17
21
|
validateMetadata,
|
|
@@ -109,18 +113,26 @@ export async function validateGeneratedBom(bomJson) {
|
|
|
109
113
|
* Run schema + deep validation checks from the existing validator helpers and
|
|
110
114
|
* capture their boolean results without letting them blow up the process.
|
|
111
115
|
*
|
|
116
|
+
* An exception is not a verdict on the BOM, so it is recorded in
|
|
117
|
+
* `validationErrors` instead of silently counting as a plain failure.
|
|
118
|
+
*
|
|
112
119
|
* @param {object} bomJson
|
|
113
120
|
* @param {object} opts
|
|
114
|
-
* @returns {Promise<{ schemaValid: boolean, deepValid: boolean }>}
|
|
121
|
+
* @returns {Promise<{ schemaValid: boolean, deepValid: boolean, validationErrors: Array<{ stage: string, message: string }> }>}
|
|
115
122
|
*/
|
|
116
123
|
async function runSchemaAndDeep(bomJson, opts) {
|
|
117
124
|
let schemaValid = true;
|
|
118
125
|
let deepValid = true;
|
|
126
|
+
const validationErrors = [];
|
|
119
127
|
if (opts.schema !== false) {
|
|
120
128
|
try {
|
|
121
129
|
schemaValid = (await validateBom(bomJson)) !== false;
|
|
122
130
|
} catch (err) {
|
|
123
131
|
schemaValid = false;
|
|
132
|
+
validationErrors.push({
|
|
133
|
+
stage: "schema",
|
|
134
|
+
message: err?.message || String(err),
|
|
135
|
+
});
|
|
124
136
|
if (opts.onError) opts.onError("schema", err);
|
|
125
137
|
}
|
|
126
138
|
}
|
|
@@ -133,10 +145,14 @@ async function runSchemaAndDeep(bomJson, opts) {
|
|
|
133
145
|
validateProps(bomJson) !== false;
|
|
134
146
|
} catch (err) {
|
|
135
147
|
deepValid = false;
|
|
148
|
+
validationErrors.push({
|
|
149
|
+
stage: "deep",
|
|
150
|
+
message: err?.message || String(err),
|
|
151
|
+
});
|
|
136
152
|
if (opts.onError) opts.onError("deep", err);
|
|
137
153
|
}
|
|
138
154
|
}
|
|
139
|
-
return { schemaValid, deepValid };
|
|
155
|
+
return { schemaValid, deepValid, validationErrors };
|
|
140
156
|
}
|
|
141
157
|
|
|
142
158
|
/**
|
|
@@ -151,10 +167,13 @@ async function runSchemaAndDeep(bomJson, opts) {
|
|
|
151
167
|
* @param {string} [options.minSeverity] Minimum severity for returned findings.
|
|
152
168
|
* @param {boolean} [options.includeManual] Include manual-review findings (default true).
|
|
153
169
|
* @param {boolean} [options.includePass] Include passing findings (default false).
|
|
154
|
-
* @param {string} [options.publicKey] If set, verify the BOM signature.
|
|
170
|
+
* @param {string} [options.publicKey] If set, verify the BOM signature with this public key.
|
|
171
|
+
* @param {string|Buffer} [options.secretKey] If set, verify an HMAC (HS*) BOM signature with this shared secret.
|
|
172
|
+
* @param {boolean} [options.nestedSignatures] Also verify component, service, and annotation signatures (default true), as cdx-verify does.
|
|
155
173
|
* @returns {{
|
|
156
174
|
* schemaValid: boolean,
|
|
157
175
|
* deepValid: boolean,
|
|
176
|
+
* validationErrors: Array<{ stage: string, message: string }>,
|
|
158
177
|
* signatureVerified: boolean | null,
|
|
159
178
|
* signatureDetails: object | null,
|
|
160
179
|
* findings: Array<object>,
|
|
@@ -164,7 +183,10 @@ async function runSchemaAndDeep(bomJson, opts) {
|
|
|
164
183
|
* }}
|
|
165
184
|
*/
|
|
166
185
|
export async function validateBomAdvanced(bomJson, options = {}) {
|
|
167
|
-
const { schemaValid, deepValid } = await runSchemaAndDeep(
|
|
186
|
+
const { schemaValid, deepValid, validationErrors } = await runSchemaAndDeep(
|
|
187
|
+
bomJson,
|
|
188
|
+
options,
|
|
189
|
+
);
|
|
168
190
|
const allFindings = evaluateAll(bomJson, {
|
|
169
191
|
categories: options.categories,
|
|
170
192
|
benchmarks: options.benchmarks,
|
|
@@ -177,17 +199,32 @@ export async function validateBomAdvanced(bomJson, options = {}) {
|
|
|
177
199
|
});
|
|
178
200
|
let signatureVerified = null;
|
|
179
201
|
let signatureDetails = null;
|
|
180
|
-
|
|
202
|
+
const verificationRequested = Boolean(options.publicKey || options.secretKey);
|
|
203
|
+
if (verificationRequested && bomJson?.signature) {
|
|
181
204
|
try {
|
|
182
|
-
const
|
|
205
|
+
const key = options.secretKey
|
|
206
|
+
? loadSharedSecret(options.secretKey)
|
|
207
|
+
: options.publicKey;
|
|
208
|
+
const reasons = [];
|
|
209
|
+
const verify =
|
|
210
|
+
options.nestedSignatures === false ? verifyNode : verifyBom;
|
|
211
|
+
const match = verify(bomJson, key, { reasons });
|
|
183
212
|
signatureVerified = Boolean(match);
|
|
184
|
-
|
|
213
|
+
if (match) {
|
|
214
|
+
signatureDetails = match;
|
|
215
|
+
} else {
|
|
216
|
+
signatureDetails = {
|
|
217
|
+
error: reasons.length
|
|
218
|
+
? [...new Set(reasons)].join(" ")
|
|
219
|
+
: "No signature matched the key.",
|
|
220
|
+
};
|
|
221
|
+
}
|
|
185
222
|
} catch (err) {
|
|
186
223
|
signatureVerified = false;
|
|
187
224
|
signatureDetails = { error: err?.message || String(err) };
|
|
188
225
|
}
|
|
189
|
-
} else if (
|
|
190
|
-
//
|
|
226
|
+
} else if (verificationRequested) {
|
|
227
|
+
// Verification key provided but BOM has no signature.
|
|
191
228
|
signatureVerified = false;
|
|
192
229
|
signatureDetails = { error: "BOM has no signature block." };
|
|
193
230
|
}
|
|
@@ -197,6 +234,7 @@ export async function validateBomAdvanced(bomJson, options = {}) {
|
|
|
197
234
|
return {
|
|
198
235
|
schemaValid,
|
|
199
236
|
deepValid,
|
|
237
|
+
validationErrors,
|
|
200
238
|
signatureVerified,
|
|
201
239
|
signatureDetails,
|
|
202
240
|
findings: filtered,
|
|
@@ -128,6 +128,9 @@ export function formatSummary(summary) {
|
|
|
128
128
|
export function render(report) {
|
|
129
129
|
const pieces = [];
|
|
130
130
|
pieces.push(formatSummary(report.summary));
|
|
131
|
+
for (const e of report.validationErrors || []) {
|
|
132
|
+
pieces.push(`Validator error during ${e.stage} validation: ${e.message}`);
|
|
133
|
+
}
|
|
131
134
|
if (report.benchmarks?.length) {
|
|
132
135
|
pieces.push(formatBenchmarks(report.benchmarks));
|
|
133
136
|
}
|
|
@@ -12,6 +12,7 @@ export function render(report, _options = {}) {
|
|
|
12
12
|
const payload = {
|
|
13
13
|
schemaValid: report.schemaValid,
|
|
14
14
|
deepValid: report.deepValid,
|
|
15
|
+
validationErrors: report.validationErrors || [],
|
|
15
16
|
signatureVerified: report.signatureVerified ?? null,
|
|
16
17
|
summary: report.summary,
|
|
17
18
|
benchmarks: report.benchmarks || [],
|
|
@@ -167,12 +167,19 @@ export function render(report, options = {}) {
|
|
|
167
167
|
{
|
|
168
168
|
executionSuccessful:
|
|
169
169
|
report.summary?.fail === 0 && report.schemaValid !== false,
|
|
170
|
+
toolExecutionNotifications: (report.validationErrors || []).map(
|
|
171
|
+
(e) => ({
|
|
172
|
+
level: "error",
|
|
173
|
+
message: { text: `${e.stage} validation error: ${e.message}` },
|
|
174
|
+
}),
|
|
175
|
+
),
|
|
170
176
|
},
|
|
171
177
|
],
|
|
172
178
|
results: findings.map(toSarifResult),
|
|
173
179
|
properties: {
|
|
174
180
|
schemaValid: report.schemaValid,
|
|
175
181
|
deepValid: report.deepValid,
|
|
182
|
+
validationErrors: report.validationErrors || [],
|
|
176
183
|
signatureVerified: report.signatureVerified ?? null,
|
|
177
184
|
summary: report.summary,
|
|
178
185
|
benchmarks: report.benchmarks || [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdxgen/cdxgen",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"description": "Creates CycloneDX Software Bill of Materials (SBOM) from source or container image",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sbom",
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
"index.cjs"
|
|
124
124
|
],
|
|
125
125
|
"dependencies": {
|
|
126
|
-
"@babel/parser": "8.0.
|
|
127
|
-
"@babel/traverse": "8.0.
|
|
128
|
-
"@cdxgen/cdx-purl": "0.0.
|
|
126
|
+
"@babel/parser": "8.0.6",
|
|
127
|
+
"@babel/traverse": "8.0.6",
|
|
128
|
+
"@cdxgen/cdx-purl": "0.0.6",
|
|
129
129
|
"@isaacs/string-locale-compare": "1.1.0",
|
|
130
130
|
"@npmcli/fs": "6.0.0",
|
|
131
131
|
"@npmcli/map-workspaces": "6.0.0",
|
|
@@ -140,14 +140,14 @@
|
|
|
140
140
|
"npm-package-arg": "14.0.0",
|
|
141
141
|
"parse-conflict-json": "6.0.0",
|
|
142
142
|
"semver": "7.8.5",
|
|
143
|
-
"smol-toml": "
|
|
143
|
+
"smol-toml": "1.8.0",
|
|
144
144
|
"ssri": "14.0.0",
|
|
145
145
|
"tar": "7.5.22",
|
|
146
146
|
"treeverse": "3.0.0",
|
|
147
|
-
"undici": "8.
|
|
147
|
+
"undici": "8.11.0",
|
|
148
148
|
"walk-up-path": "4.0.0",
|
|
149
149
|
"yaml": "2.9.1",
|
|
150
|
-
"yargs": "18.
|
|
150
|
+
"yargs": "18.2.0"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
153
|
"@biomejs/biome": "2.5.14",
|
|
@@ -158,22 +158,22 @@
|
|
|
158
158
|
},
|
|
159
159
|
"optionalDependencies": {
|
|
160
160
|
"@appthreat/atom": "3.1.1",
|
|
161
|
-
"@appthreat/atom-parsetools": "1.
|
|
161
|
+
"@appthreat/atom-parsetools": "1.8.0",
|
|
162
162
|
"@bufbuild/protobuf": "2.15.0",
|
|
163
163
|
"@cdxgen/cdx-hbom": "0.5.1",
|
|
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": "0.
|
|
165
|
+
"@cdxgen/cdxgen-plugins-bin": "4.1.0",
|
|
166
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-amd64": "4.1.0",
|
|
167
|
+
"@cdxgen/cdxgen-plugins-bin-darwin-arm64": "4.1.0",
|
|
168
|
+
"@cdxgen/cdxgen-plugins-bin-linux-amd64": "4.1.0",
|
|
169
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm": "4.1.0",
|
|
170
|
+
"@cdxgen/cdxgen-plugins-bin-linux-arm64": "4.1.0",
|
|
171
|
+
"@cdxgen/cdxgen-plugins-bin-linux-ppc64": "4.1.0",
|
|
172
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-amd64": "4.1.0",
|
|
173
|
+
"@cdxgen/cdxgen-plugins-bin-linuxmusl-arm64": "4.1.0",
|
|
174
|
+
"@cdxgen/cdxgen-plugins-bin-windows-amd64": "4.1.0",
|
|
175
|
+
"@cdxgen/cdxgen-plugins-bin-windows-arm64": "4.1.0",
|
|
176
|
+
"@cdxgen/safer-exec": "1.0.1",
|
|
177
177
|
"body-parser": "2.3.0",
|
|
178
178
|
"compression": "1.8.2",
|
|
179
179
|
"connect": "3.7.0",
|
|
@@ -65,7 +65,8 @@ export declare const componentToSimpleFullName: (comp: object) => string;
|
|
|
65
65
|
/**
|
|
66
66
|
* Strips transient keys (`evidence`, `_integrity`, `license`, `qualifiers`,
|
|
67
67
|
* `repository`, `homepage`) from a parent component while preserving licenses
|
|
68
|
-
* and external references (bug #1519).
|
|
68
|
+
* and external references (bug #1519). External references whose URL is not a
|
|
69
|
+
* valid IRI reference are dropped.
|
|
69
70
|
*
|
|
70
71
|
* @param {object} comp Parent component to clean in place
|
|
71
72
|
* @returns {object} The cleaned parent component
|
|
@@ -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":"AAgEA;;;;;;;;;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,CAAC,EAAE,MAAM,EAAE,CAAA;CA+CrD,CAAC;AAEF;;;;;GAKG;AACH,eAA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AAO,EAHxC,MAGwC,GAFtC,MAAM,EAAE,CAyBpB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAHpC,MAGoC,GAFlC,MAAM,GAAC,SAAS,CAS5B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,wBAAwB,EAHtD,MAAM,EAGgD,GAFpD,OAAO,CAInB;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EALvC,MAAM,EAKiC,EAAE,aAAa,EAJtD,MAIsD,EAAE,OAAO,EAH/D,GAAG,CAAC,MAAM,CAGqD,GAF7D,MAAM,EAAE,CAgBpB;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAH9C,MAAM,EAGwC,GAF5C,MAAM,EAAE,CAQpB;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EALvC,MAKuC,EAAE,KAAK,EAJ9C,MAI8C,EAAE,QAAQ,EAHxD,MAAM,EAGkD,GAFtD,MAAM,CAIlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAJvC,MAIuC,EAAE,aAAa,EAHtD,MAGsD,GAFpD,IAAI,CAyDhB;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAPtB,MAOsB,EAAE,UAAU,OAAA,EAAE,eAAe,EALnD,MAKmD,EAAE,YAAY,OAAA,GAF/D,MAAM,CA8ClB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,YAJjC,MAAM,mBACN,MAAM,KACJ,OAYZ,CAAC"}
|
|
@@ -37,6 +37,33 @@ export declare function validateSpecVersion(specVersion: number, commandName?: s
|
|
|
37
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
|
+
* Combine the custom metadata properties of every source (discussion 4391):
|
|
42
|
+
* the `--metadata-property` flag, the CDXGEN_METADATA_PROPERTY and
|
|
43
|
+
* CDXGEN_METADATA_PROPERTIES environment variables, and a config file's
|
|
44
|
+
* `metadata-property` or `metadataProperties` entry.
|
|
45
|
+
*
|
|
46
|
+
* yargs would let the highest-precedence source replace the others outright,
|
|
47
|
+
* so each is read on its own and they are merged instead. A name set by more
|
|
48
|
+
* than one source takes its values from the one that wins in the usual order
|
|
49
|
+
* — the command line, then the environment, then the config file — while a
|
|
50
|
+
* source may repeat a name for a multi-valued property.
|
|
51
|
+
*
|
|
52
|
+
* @param {object} args Parsed yargs argv
|
|
53
|
+
* @param {object} [context]
|
|
54
|
+
* @param {string[]} [context.argv] Raw command-line arguments, which tell a
|
|
55
|
+
* flag on the command line from one yargs filled in from elsewhere
|
|
56
|
+
* @param {object} [context.projectConfig] The sanitized config file contents.
|
|
57
|
+
* Without it, a programmatic caller's `args` are taken as the config.
|
|
58
|
+
* @returns {{name: string, value: string}[]} The merged properties
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveMetadataProperties(args: object, { argv, projectConfig }?: {
|
|
61
|
+
argv?: string[];
|
|
62
|
+
projectConfig?: object;
|
|
63
|
+
}): {
|
|
64
|
+
name: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}[];
|
|
40
67
|
/**
|
|
41
68
|
* Apply command-name-based defaults to the raw parsed args. When cdxgen is
|
|
42
69
|
* invoked via a symlink or alias (e.g. `obom`, `cbom`, `spdxgen`, `aibom`),
|
|
@@ -50,10 +77,11 @@ export declare function isUserProvided(value: any, yaDefault: any): boolean;
|
|
|
50
77
|
* @returns {object} A shallow copy of args with alias-based defaults applied
|
|
51
78
|
*/
|
|
52
79
|
export declare function applyCommandNameDefaults(args: object, invokedCommandName: string): object;
|
|
53
|
-
export declare function buildInitialOptions(args: any, { filePath, isRemoteOrPurl, argv }: {
|
|
80
|
+
export declare function buildInitialOptions(args: any, { filePath, isRemoteOrPurl, argv, projectConfig }: {
|
|
54
81
|
argv?: any;
|
|
55
82
|
filePath: any;
|
|
56
83
|
isRemoteOrPurl: any;
|
|
84
|
+
projectConfig: any;
|
|
57
85
|
}): any;
|
|
58
86
|
export type OptionsWarning = {
|
|
59
87
|
/**
|
|
@@ -141,6 +169,9 @@ export declare function applyAdvancedOptions(options: object, context?: {
|
|
|
141
169
|
* passed `--spec-version`
|
|
142
170
|
* @param {boolean} [context.isDryRun=false] Dry-run mode
|
|
143
171
|
* @param {boolean} [context.isSecureMode] Secure mode
|
|
172
|
+
* @param {object} [context.projectConfig] Sanitized config file contents,
|
|
173
|
+
* whose metadata properties merge
|
|
174
|
+
* with the other sources'
|
|
144
175
|
* @returns {{ options: object, warnings: OptionsWarning[] }}
|
|
145
176
|
*/
|
|
146
177
|
export declare function buildOptionsFromArgs(args: object, context: {
|
|
@@ -150,6 +181,7 @@ export declare function buildOptionsFromArgs(args: object, context: {
|
|
|
150
181
|
userSetSpecVersion: boolean;
|
|
151
182
|
isDryRun?: boolean;
|
|
152
183
|
isSecureMode?: boolean;
|
|
184
|
+
projectConfig?: object;
|
|
153
185
|
}): {
|
|
154
186
|
options: object;
|
|
155
187
|
warnings: OptionsWarning[];
|
|
@@ -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;AAwBH;;;;;;;;;;;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;;;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9B,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":"AAyEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.js"],"names":[],"mappings":"AAyEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAwCnE,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,aAAa,EACb,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,YAAY,EACZ,eAAe,EAC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3B;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jsBom.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jsBom.js"],"names":[],"mappings":"AAyGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAJlC,MAIkC,EAAE,OAAO,EAH3C,MAG2C,GAFzC,MAAM,GAAC,SAAS,CAwB5B;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAJ/B,MAI+B,EAAE,OAAO,EAHxC,MAGwC,GAFtC,OAAO,CAAC,MAAM,CAAC,CAw2C3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAFtB,MAE4C,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,YAJ9B,KAAK,CAAC,MAAM,CAAC,cACb,MAAM,KACJ,KAAK,CAAC,MAAM,CAwExB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CAmD3B;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,IAAI,EAJxC,MAIwC,EAAE,OAAO,EAHjD,MAGiD,GAF/C,OAAO,CAAC,MAAM,CAAC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C,QAAQ,EALxC,MAKwC,EAAE,MAAM,EAJhD,MAIgD,EAAE,GAAG,EAHrD,MAGqD,GAFnD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"jvmBom.d.ts","sourceRoot":"","sources":["../../../lib/cli/jvmBom.js"],"names":[],"mappings":"AAiGA;;;;;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;AAEhF;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAL5B,MAK4B,EAAE,OAAO,EAJrC,MAIqC,GAFnC,MAAM,CA8ElB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EALxC,MAKwC,EAAE,MAAM,EAJhD,MAIgD,EAAE,GAAG,EAHrD,MAGqD,GAFnD,MAAM,EAAE,CAgEpB;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAAO,CAAC,MAAM,CAAC,CAwvD3B"}
|
|
@@ -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":"AA+HA;;;;;;;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,MA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7B,MAG6B,GAF3B,MAAM,CA2DlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAJvB,MAIuB,EAAE,OAAO,EAHhC,MAGgC,GAF9B,MAAM,CAmClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAJ5B,MAI4B,EAAE,OAAO,EAHrC,MAGqC,GAFnC,MAAM,CAyBlB"}
|
|
@@ -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":"AAgLA;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAFnB,MAAM,GAAC,SAAS,CAU5B;AAED;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAJ3B,MAI2B,EAAE,OAAO,EAHpC,MAGoC,GAFlC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAuevC;AA2PD,wBAAsB,aAAa,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,+BAyLhD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAHvC,MAGuC,GAFrC,MAAM,GAAC,SAAS,CAiC5B;AAED;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAAC,SAAS,EAJ9C,MAI8C,EAAE,SAAS,AAHjE,CACA,EADQ,MAGyD,GAFvD,OAAO,CAAC,MAAM,GAAC,SAAS,CAAC,CA8BrC;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAJnC,MAImC,EAAE,OAAO,EAH5C,MAG4C,GAF1C,OAAO,CAAC,MAAM,CAAC,CAwB3B;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAJ7B,MAI6B,EAAE,OAAO,EAHtC,MAGsC,GAFpC,OAA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ePath: string): boolean;
|
|
|
25
25
|
* @returns {void}
|
|
26
26
|
*/
|
|
27
27
|
export declare function safeWriteSync(filePath: string, data: string | Buffer, options?: Object): void;
|
|
28
|
+
/**
|
|
29
|
+
* Permission- and dry-run-aware write of a sequence of chunks, for content too
|
|
30
|
+
* large to join into one string first. The chunks go to a temporary file next
|
|
31
|
+
* to the target, which is renamed into place once complete, so a chunk may be
|
|
32
|
+
* read from the file being replaced and a failed write leaves the target as it
|
|
33
|
+
* was.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} filePath File path to write.
|
|
36
|
+
* @param {Iterable<string|Buffer>} chunks Chunks written in order.
|
|
37
|
+
* @returns {void}
|
|
38
|
+
*/
|
|
39
|
+
export declare function safeWriteChunksSync(filePath: string, chunks: Iterable<string | Buffer>): void;
|
|
28
40
|
/**
|
|
29
41
|
* Permission-aware wrapper around readFileSync that returns undefined instead
|
|
30
42
|
* of throwing. Reads are allowed in dry-run mode, so unlike the write wrappers
|
|
@@ -97,6 +109,49 @@ export declare function safeExtractArchive(sourcePath: string, targetPath: strin
|
|
|
97
109
|
export declare const temporaryFiles: Set<any>;
|
|
98
110
|
/** Set accumulating every executable command spawned via safeSpawnSync. */
|
|
99
111
|
export declare const commandsExecuted: Set<any>;
|
|
112
|
+
/**
|
|
113
|
+
* Quote one argument of a shell command line that is built as a single
|
|
114
|
+
* string. The shell flag exists so cmd.exe can resolve bare command names,
|
|
115
|
+
* `.cmd` shims and scripts, and every argument is data (paths, flags) that
|
|
116
|
+
* must arrive as one token whatever it contains: joined unquoted, an
|
|
117
|
+
* argument with spaces splits into several and hands the tool the wrong
|
|
118
|
+
* tokens.
|
|
119
|
+
*
|
|
120
|
+
* Windows follows the quoting rules cmd.exe and the MSVC runtimes share:
|
|
121
|
+
* wrap in double quotes, doubling the backslashes that precede a quote and
|
|
122
|
+
* escaping the quote itself. Inside double quotes cmd.exe already treats
|
|
123
|
+
* `&`, `|`, `<`, `>`, `^` and parentheses as literals, and the
|
|
124
|
+
* shell-metacharacter block above refuses `%` and the rest before this
|
|
125
|
+
* runs. A POSIX shell gets single quotes, which no expansion can leave.
|
|
126
|
+
*
|
|
127
|
+
* The same quoting is applied to the command itself when it names an
|
|
128
|
+
* existing file under a path with spaces; a command the shell must parse
|
|
129
|
+
* (a bare name, `sh -c`) never names a file as a whole and stays verbatim.
|
|
130
|
+
*
|
|
131
|
+
* @param {string} arg Argument to quote
|
|
132
|
+
* @param {boolean} [forWindows] Quote for cmd.exe rather than a POSIX shell; defaults to the current platform
|
|
133
|
+
* @returns {string} The argument, quoted when the shell needs it
|
|
134
|
+
*/
|
|
135
|
+
export declare function shellQuoteArgument(arg: string, forWindows?: boolean): string;
|
|
136
|
+
/**
|
|
137
|
+
* Build the single command string a shell spawn runs. Every argument is
|
|
138
|
+
* quoted for the platform shell, so an argument containing spaces stays one
|
|
139
|
+
* token and cannot alter the command, and a command that is itself a file
|
|
140
|
+
* under a path with spaces (`C:\Program Files\...\node.exe`) is quoted too;
|
|
141
|
+
* a command the shell must parse (`sh -c`, a bare name) never names an
|
|
142
|
+
* existing file as a whole and is left verbatim.
|
|
143
|
+
*
|
|
144
|
+
* The one exception is a caller that composes shell fragments itself (sbt
|
|
145
|
+
* command lines embed their own quoting for the shell to strip): it passes
|
|
146
|
+
* `rawShellArgs` and keeps the verbatim join, under the shell-metacharacter
|
|
147
|
+
* block in safeSpawnSync like every other argument.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} command The executable
|
|
150
|
+
* @param {string[]|undefined} args Arguments, when the caller passed any
|
|
151
|
+
* @param {boolean} [rawShellArgs] Join the arguments verbatim instead of quoting them
|
|
152
|
+
* @returns {string} The command line the shell will run
|
|
153
|
+
*/
|
|
154
|
+
export declare function joinShellCommand(command: string, args: string[] | undefined, rawShellArgs?: boolean): string;
|
|
100
155
|
/**
|
|
101
156
|
* Safe wrapper around spawnSync that enforces permission checks, injects default
|
|
102
157
|
* options (maxBuffer, encoding, timeout), warns about unsafe Python and pip/uv
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../lib/core/fs.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../lib/core/fs.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA8ErC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,QAAA,OAmCtC;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAHlC,MAGkC,GAFhC,OAAO,CAYnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAL3B,MAK2B,EAAE,IAAI,EAJjC,MAAM,GAAC,MAI0B,EAAE,OAAO,AAHlD,CACA,EADQ,MAG0C,GAFxC,IAAI,CAQhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAJjC,MAIiC,EAAE,MAAM,EAHzC,QAAQ,CAAC,MAAM,GAAC,MAAM,CAGmB,GAFvC,IAAI,CA4BhB;AA2BD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAJ9B,MAI8B,EAAE,OAAO,AAH/C,CACA,EADQ,MAAM,GAAC,MAG0C,GAF/C,MAAM,GAAC,MAAM,GAAC,SAAS,CA0BnC;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,QAAA,EAAE,OAAO,EAH5B,OAG4B,aAwB9C;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAJ3B,MAI2B,EAAE,OAAO,AAH5C,CACA,EADQ,MAAM,GAAC,MAGyC,GAF9C,MAAM,GAAC,SAAS,CAyB5B;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAJxB,MAIwB,EAAE,OAAO,AAHzC,C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MAMwB,EAAE,OAAO,EALjC,MAKiC,EAAE,OAAO,GAJ1C,MAI+C,OAuCzD;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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The spellings under which a config file may list custom metadata
|
|
3
|
+
* properties: those of the `--metadata-property` flag, and the plural that
|
|
4
|
+
* the CDXGEN_METADATA_PROPERTIES environment variable maps to.
|
|
5
|
+
*/
|
|
6
|
+
export declare const METADATA_PROPERTY_CONFIG_KEYS: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Report whether a property name belongs to a namespace cdxgen reserves for
|
|
9
|
+
* the facts it establishes itself, such as `cdx:bom:componentSrcFiles`.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} name Property name
|
|
12
|
+
* @returns {boolean} true for a reserved name
|
|
13
|
+
*/
|
|
14
|
+
export declare function isReservedMetadataPropertyName(name: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Normalize user-supplied metadata properties into `[{name, value}]`
|
|
17
|
+
* (discussion 4391).
|
|
18
|
+
*
|
|
19
|
+
* Accepted shapes:
|
|
20
|
+
* - a `name=value` string, or a JSON document holding any of the shapes below
|
|
21
|
+
* — an environment variable
|
|
22
|
+
* - an array of `name=value` strings or `{name, value}` objects — the
|
|
23
|
+
* `--metadata-property` flag and a JSON config file
|
|
24
|
+
* - a plain object mapping a name to a value, or to a list of values for a
|
|
25
|
+
* property that repeats — a JSON document or a YAML config file
|
|
26
|
+
*
|
|
27
|
+
* Values must be strings, numbers, or booleans. An entry without a name, a
|
|
28
|
+
* `name=value` string without a separator, and an empty or structured value
|
|
29
|
+
* are dropped rather than guessed at: a property with a mangled name or an
|
|
30
|
+
* `[object Object]` value is worse than none.
|
|
31
|
+
*
|
|
32
|
+
* @param {unknown} input Properties in any accepted shape
|
|
33
|
+
* @returns {{name: string, value: string}[]} Normalized properties
|
|
34
|
+
*/
|
|
35
|
+
export declare function parseMetadataProperties(input: unknown): {
|
|
36
|
+
name: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
//# sourceMappingURL=metadataProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadataProperties.d.ts","sourceRoot":"","sources":["../../../lib/core/metadataProperties.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,UAKzC,CAAC;AAMF;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAHxC,MAGwC,GAFtC,OAAO,CAMnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAHlC,OAGkC,GAFhC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,EAAE,CAiD3C"}
|
|
@@ -9,15 +9,19 @@ export declare const PROJECT_CONFIG_FILENAMES: string[];
|
|
|
9
9
|
* whenever that tree is. Path options are therefore confined to the config's
|
|
10
10
|
* own directory - a scanned project may choose where in itself the BOM lands,
|
|
11
11
|
* but not write outside it - and options that redirect data off the host or
|
|
12
|
-
* widen what cdxgen executes are announced on the console.
|
|
12
|
+
* widen what cdxgen executes are announced on the console. A project may
|
|
13
|
+
* describe itself with custom metadata properties, but not in the namespaces
|
|
14
|
+
* cdxgen reserves for the facts it establishes, so a scanned tree cannot pass
|
|
15
|
+
* its own claims off as cdxgen's.
|
|
13
16
|
*
|
|
14
17
|
* @param {Object} config parsed config file contents
|
|
15
18
|
* @param {string} configDir directory the config file was read from
|
|
16
|
-
* @returns {{config: Object, rejected: string[], announced: string[]}} sanitized config and what it did
|
|
19
|
+
* @returns {{config: Object, rejected: string[], announced: string[], reservedProperties: string[]}} sanitized config and what it did
|
|
17
20
|
*/
|
|
18
21
|
export declare function sanitizeProjectConfig(config: Object, configDir: string): {
|
|
19
22
|
config: Object;
|
|
20
23
|
rejected: string[];
|
|
21
24
|
announced: string[];
|
|
25
|
+
reservedProperties: string[];
|
|
22
26
|
};
|
|
23
27
|
//# sourceMappingURL=projectConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"projectConfig.d.ts","sourceRoot":"","sources":["../../../lib/core/projectConfig.js"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,wBAAwB,UAKpC,CAAC;AAsEF;;;;;;;;;;;;;;;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"}
|
|
@@ -14,14 +14,21 @@ export declare function parseBunDescriptor(descriptor: string): {
|
|
|
14
14
|
version: string;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* Parse a bun text lockfile (`bun.lock`, lockfileVersion 1
|
|
17
|
+
* Parse a bun text lockfile (`bun.lock`, lockfileVersion 1-3; v1 was written
|
|
18
|
+
* by the Zig implementation in bun 1.2.x-1.3.x and v2/v3 by the Rust one in
|
|
19
|
+
* bun 1.4+ - the content shape is identical, only parse strictness changed).
|
|
18
20
|
*
|
|
19
21
|
* Bun's text lockfile is JSONC (JSON with trailing commas). It records the
|
|
20
22
|
* workspace roots under `workspaces` and the fully resolved dependency tree
|
|
21
|
-
* under `packages`, where
|
|
22
|
-
* `
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* under `packages`, where nested duplicate versions are keyed by their
|
|
24
|
+
* dependency path (eg `"parent/child"`). The entry layout after the leading
|
|
25
|
+
* `"name@version"` descriptor depends on the resolution type (see the
|
|
26
|
+
* Stringifier in bun's bun.lock.rs):
|
|
27
|
+
* - npm: `["name@version", tarballUrlOrEmpty, { dependencies, bin, os, ... }, "sha512-..."]`
|
|
28
|
+
* - git/github: `["name@git+repo", { ... }, ".bun-tag", "sha512-..."]`
|
|
29
|
+
* - tarball/folder/symlink: `["name@url", { ... }, "sha512-..."]`
|
|
30
|
+
* - workspace: `["name@workspace:path"]`
|
|
31
|
+
* so the elements are recognised by shape instead of fixed indices.
|
|
25
32
|
*
|
|
26
33
|
* The binary lockfile (`bun.lockb`) is intentionally not supported - callers
|
|
27
34
|
* should ask users to regenerate it with `bun install --save-text-lockfile`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bunutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/bunutils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bunutils.d.ts","sourceRoot":"","sources":["../../../lib/ecosystems/bunutils.js"],"names":[],"mappings":"AAgCA;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EALlC,MAKkC,GAJhC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAwB1D;AA2ED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,YAAY,CAAC,WAAW,EALnC,MAKmC,EAAE,OAAO,AAJpD,CACA,EADQ,MAIiD,GAH/C,OAAO,CAAC;IAAC,OAAO,QAAQ;IAAC,gBAAgB,QAAO;CAAC,CAAC,CA0Z9D"}
|