snyk 1.1069.0 → 1.1071.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/263.index.js +211 -226
- package/dist/cli/263.index.js.map +1 -1
- package/dist/cli/784.index.js +20 -5
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/917.index.js +19 -5
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/package.json +1 -1
package/dist/cli/917.index.js
CHANGED
|
@@ -2475,13 +2475,27 @@ async function test(...args) {
|
|
|
2475
2475
|
// TODO remove 'app-vulns' options and warning message once
|
|
2476
2476
|
// https://github.com/snyk/cli/pull/3433 is merged
|
|
2477
2477
|
if (options.docker) {
|
|
2478
|
-
|
|
2478
|
+
// order is important here, we want:
|
|
2479
|
+
// 1) exclude-app-vulns set -> no app vulns
|
|
2480
|
+
// 2) app-vulns set -> app-vulns
|
|
2481
|
+
// 3) neither set -> containerAppVulnsEnabled
|
|
2482
|
+
if (options['exclude-app-vulns']) {
|
|
2479
2483
|
options['exclude-app-vulns'] = true;
|
|
2480
2484
|
}
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
+
else if (options['app-vulns']) {
|
|
2486
|
+
options['exclude-app-vulns'] = false;
|
|
2487
|
+
}
|
|
2488
|
+
else {
|
|
2489
|
+
options['exclude-app-vulns'] = !(await feature_flags_1.hasFeatureFlag('containerCliAppVulnsEnabled', options));
|
|
2490
|
+
// we can't print the warning message with JSON output as that would make
|
|
2491
|
+
// the JSON output invalid.
|
|
2492
|
+
// We also only want to print the message if the user did not overwrite
|
|
2493
|
+
// the default with one of the flags.
|
|
2494
|
+
if (options['exclude-app-vulns'] &&
|
|
2495
|
+
!options['json'] &&
|
|
2496
|
+
!options['sarif']) {
|
|
2497
|
+
console.log(theme.color.status.warn(appVulnsReleaseWarningMsg));
|
|
2498
|
+
}
|
|
2485
2499
|
}
|
|
2486
2500
|
}
|
|
2487
2501
|
const ecosystem = ecosystems_1.getEcosystemForTest(options);
|