snyk 1.1212.0 → 1.1214.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/dist/cli/784.index.js +1 -9
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/855.index.js +4 -0
- package/dist/cli/855.index.js.map +1 -1
- package/dist/lib/plugins/sast/localCodeEngine.d.ts +0 -1
- package/help/cli-commands/code-test.md +2 -2
- package/help/cli-commands/iac-test.md +1 -1
- package/help/cli-commands/monitor.md +2 -10
- package/help/cli-commands/sbom.md +59 -1
- package/help/cli-commands/test.md +3 -13
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +7 -7
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +7 -7
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/784.index.js
CHANGED
|
@@ -4685,7 +4685,6 @@ async function getCodeTestResults(root, options, sastSettings, requestId) {
|
|
|
4685
4685
|
const isLocalCodeEngineEnabled = localCodeEngine_1.isLocalCodeEngine(sastSettings);
|
|
4686
4686
|
if (isLocalCodeEngineEnabled) {
|
|
4687
4687
|
baseURL = sastSettings.localCodeEngine.url;
|
|
4688
|
-
localCodeEngine_1.validateLocalCodeEngineUrl(baseURL);
|
|
4689
4688
|
if (options.debug) {
|
|
4690
4689
|
await localCodeEngine_1.logLocalCodeEngineVersion(baseURL);
|
|
4691
4690
|
}
|
|
@@ -5297,10 +5296,9 @@ function throwIssuesError(args) {
|
|
|
5297
5296
|
"use strict";
|
|
5298
5297
|
|
|
5299
5298
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5300
|
-
exports.logLocalCodeEngineVersion = exports.
|
|
5299
|
+
exports.logLocalCodeEngineVersion = exports.isLocalCodeEngine = void 0;
|
|
5301
5300
|
const debugLib = __webpack_require__(15158);
|
|
5302
5301
|
const chalk_1 = __webpack_require__(32589);
|
|
5303
|
-
const errors_1 = __webpack_require__(61315);
|
|
5304
5302
|
const request_1 = __webpack_require__(52050);
|
|
5305
5303
|
const debug = debugLib('snyk-code');
|
|
5306
5304
|
function isLocalCodeEngine(sastSettings) {
|
|
@@ -5308,12 +5306,6 @@ function isLocalCodeEngine(sastSettings) {
|
|
|
5308
5306
|
return sastEnabled && localCodeEngine.enabled;
|
|
5309
5307
|
}
|
|
5310
5308
|
exports.isLocalCodeEngine = isLocalCodeEngine;
|
|
5311
|
-
function validateLocalCodeEngineUrl(localCodeEngineUrl) {
|
|
5312
|
-
if (localCodeEngineUrl.length === 0) {
|
|
5313
|
-
throw new errors_1.MissingConfigurationError('Snyk Code Local Engine. Refer to our docs on https://docs.snyk.io/products/snyk-code/deployment-options/snyk-code-local-engine/cli-and-ide to learn more');
|
|
5314
|
-
}
|
|
5315
|
-
}
|
|
5316
|
-
exports.validateLocalCodeEngineUrl = validateLocalCodeEngineUrl;
|
|
5317
5309
|
async function logLocalCodeEngineVersion(lceUrl = '') {
|
|
5318
5310
|
const lceBaseUrl = lceUrl.replace('/api', '');
|
|
5319
5311
|
const isNonSecureHttp = lceBaseUrl.match(/^http:/);
|