snyk 1.789.0 → 1.790.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/index.js +5 -4
- package/dist/cli/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -27429,11 +27429,13 @@ async function main() {
|
|
|
27429
27429
|
modes_1.modeValidation(globalArgs);
|
|
27430
27430
|
// TODO: fix this, we do transformation to options and teh type doesn't reflect it
|
|
27431
27431
|
validateUnsupportedOptionCombinations(globalArgs.options);
|
|
27432
|
-
if (globalArgs.options['
|
|
27432
|
+
if (!globalArgs.options['experimental'] &&
|
|
27433
|
+
globalArgs.options['app-vulns'] &&
|
|
27434
|
+
globalArgs.options['json']) {
|
|
27433
27435
|
throw new errors_1.UnsupportedOptionCombinationError([
|
|
27434
27436
|
'Application vulnerabilities is currently not supported with JSON output. ' +
|
|
27435
|
-
'Please try using
|
|
27436
|
-
'
|
|
27437
|
+
'Please try using —-app-vulns only to get application vulnerabilities, or ' +
|
|
27438
|
+
'—-json only to get your image vulnerabilities, excluding the application ones.',
|
|
27437
27439
|
]);
|
|
27438
27440
|
}
|
|
27439
27441
|
if (globalArgs.options['group-issues'] && globalArgs.options['iac']) {
|
|
@@ -27627,7 +27629,6 @@ const modes = {
|
|
|
27627
27629
|
allowedCommands: ['test', 'monitor'],
|
|
27628
27630
|
config: (args) => {
|
|
27629
27631
|
args['docker'] = true;
|
|
27630
|
-
args['experimental'] = true;
|
|
27631
27632
|
return args;
|
|
27632
27633
|
},
|
|
27633
27634
|
},
|