@socketsecurity/cli-with-sentry 1.1.56 → 1.1.58
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/CHANGELOG.md +16 -0
- package/dist/cli.js +29 -10
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts +2 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
- package/dist/vendor.js +1617 -657
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## [1.1.58](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.58) - 2026-01-14
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Analysis splitting is now disabled by default for reachability scans.
|
|
11
|
+
- Added `--reach-enable-analysis-splitting` flag to opt-in to multiple analysis runs per workspace when needed.
|
|
12
|
+
- Deprecated `--reach-disable-analysis-splitting` flag (now a no-op for backwards compatibility).
|
|
13
|
+
- Updated the Coana CLI to v `14.12.154`.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.1.57](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.57) - 2026-01-10
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- Updated `@socketsecurity/socket-patch` to v1.2.0, which includes:
|
|
20
|
+
- Progress spinner for scan command
|
|
21
|
+
- Improved test coverage
|
|
22
|
+
|
|
7
23
|
## [1.1.56](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.56) - 2026-01-10
|
|
8
24
|
|
|
9
25
|
### Fixed
|
package/dist/cli.js
CHANGED
|
@@ -1648,7 +1648,7 @@ async function performReachabilityAnalysis(options) {
|
|
|
1648
1648
|
spinner?.infoAndStop('Running reachability analysis with Coana...');
|
|
1649
1649
|
const outputFilePath = outputPath || constants.default.DOT_SOCKET_DOT_FACTS_JSON;
|
|
1650
1650
|
// Build Coana arguments.
|
|
1651
|
-
const coanaArgs = ['run', analysisTarget, '--output-dir', path.dirname(outputFilePath), '--socket-mode', outputFilePath, '--disable-report-submission', ...(reachabilityOptions.reachAnalysisTimeout ? ['--analysis-timeout', `${reachabilityOptions.reachAnalysisTimeout}`] : []), ...(reachabilityOptions.reachAnalysisMemoryLimit ? ['--memory-limit', `${reachabilityOptions.reachAnalysisMemoryLimit}`] : []), ...(reachabilityOptions.reachConcurrency ? ['--concurrency', `${reachabilityOptions.reachConcurrency}`] : []), ...(reachabilityOptions.reachDebug ? ['--debug'] : []), ...(reachabilityOptions.reachDisableAnalytics ? ['--disable-analytics-sharing'] : []), ...(reachabilityOptions.
|
|
1651
|
+
const coanaArgs = ['run', analysisTarget, '--output-dir', path.dirname(outputFilePath), '--socket-mode', outputFilePath, '--disable-report-submission', ...(reachabilityOptions.reachAnalysisTimeout ? ['--analysis-timeout', `${reachabilityOptions.reachAnalysisTimeout}`] : []), ...(reachabilityOptions.reachAnalysisMemoryLimit ? ['--memory-limit', `${reachabilityOptions.reachAnalysisMemoryLimit}`] : []), ...(reachabilityOptions.reachConcurrency ? ['--concurrency', `${reachabilityOptions.reachConcurrency}`] : []), ...(reachabilityOptions.reachDebug ? ['--debug'] : []), ...(reachabilityOptions.reachDetailedAnalysisLogFile ? ['--print-analysis-log-file'] : []), ...(reachabilityOptions.reachDisableAnalytics ? ['--disable-analytics-sharing'] : []), ...(reachabilityOptions.reachEnableAnalysisSplitting ? [] : ['--disable-analysis-splitting']), ...(tarHash ? ['--run-without-docker', '--manifests-tar-hash', tarHash] : []),
|
|
1652
1652
|
// Empty reachEcosystems implies scanning all ecosystems.
|
|
1653
1653
|
...(reachabilityOptions.reachEcosystems.length ? ['--purl-types', ...reachabilityOptions.reachEcosystems] : []), ...(reachabilityOptions.reachExcludePaths.length ? ['--exclude-dirs', ...reachabilityOptions.reachExcludePaths] : []), ...(reachabilityOptions.reachLazyMode ? ['--lazy-mode'] : []), ...(reachabilityOptions.reachSkipCache ? ['--skip-cache-usage'] : []), ...(reachabilityOptions.reachUseOnlyPregeneratedSboms ? ['--use-only-pregenerated-sboms'] : [])];
|
|
1654
1654
|
|
|
@@ -2423,9 +2423,10 @@ async function handleCi(autoManifest) {
|
|
|
2423
2423
|
reachAnalysisTimeout: 0,
|
|
2424
2424
|
reachConcurrency: 1,
|
|
2425
2425
|
reachDebug: false,
|
|
2426
|
-
|
|
2426
|
+
reachDetailedAnalysisLogFile: false,
|
|
2427
2427
|
reachDisableAnalytics: false,
|
|
2428
2428
|
reachEcosystems: [],
|
|
2429
|
+
reachEnableAnalysisSplitting: false,
|
|
2429
2430
|
reachExcludePaths: [],
|
|
2430
2431
|
reachLazyMode: false,
|
|
2431
2432
|
reachSkipCache: false,
|
|
@@ -10876,6 +10877,11 @@ const reachabilityFlags = {
|
|
|
10876
10877
|
default: false,
|
|
10877
10878
|
description: 'Enable debug mode for reachability analysis. Provides verbose logging from the reachability CLI.'
|
|
10878
10879
|
},
|
|
10880
|
+
reachDetailedAnalysisLogFile: {
|
|
10881
|
+
type: 'boolean',
|
|
10882
|
+
default: false,
|
|
10883
|
+
description: 'A log file with detailed analysis logs is written to root of each analyzed workspace.'
|
|
10884
|
+
},
|
|
10879
10885
|
reachDisableAnalytics: {
|
|
10880
10886
|
type: 'boolean',
|
|
10881
10887
|
default: false,
|
|
@@ -10884,7 +10890,13 @@ const reachabilityFlags = {
|
|
|
10884
10890
|
reachDisableAnalysisSplitting: {
|
|
10885
10891
|
type: 'boolean',
|
|
10886
10892
|
default: false,
|
|
10887
|
-
|
|
10893
|
+
hidden: true,
|
|
10894
|
+
description: 'Deprecated: Analysis splitting is now disabled by default. This flag is a no-op.'
|
|
10895
|
+
},
|
|
10896
|
+
reachEnableAnalysisSplitting: {
|
|
10897
|
+
type: 'boolean',
|
|
10898
|
+
default: false,
|
|
10899
|
+
description: 'Allow the reachability analysis to partition CVEs into buckets that are processed in separate analysis runs. May improve accuracy, but not recommended by default.'
|
|
10888
10900
|
},
|
|
10889
10901
|
reachEcosystems: {
|
|
10890
10902
|
type: 'string',
|
|
@@ -11152,8 +11164,10 @@ async function run$d(argv, importMeta, {
|
|
|
11152
11164
|
reachAnalysisTimeout,
|
|
11153
11165
|
reachConcurrency,
|
|
11154
11166
|
reachDebug,
|
|
11155
|
-
|
|
11167
|
+
reachDetailedAnalysisLogFile,
|
|
11168
|
+
reachDisableAnalysisSplitting: _reachDisableAnalysisSplitting,
|
|
11156
11169
|
reachDisableAnalytics,
|
|
11170
|
+
reachEnableAnalysisSplitting,
|
|
11157
11171
|
reachLazyMode,
|
|
11158
11172
|
reachSkipCache,
|
|
11159
11173
|
reachUseOnlyPregeneratedSboms,
|
|
@@ -11286,7 +11300,7 @@ async function run$d(argv, importMeta, {
|
|
|
11286
11300
|
const isUsingNonDefaultConcurrency = reachConcurrency !== reachabilityFlags['reachConcurrency']?.default;
|
|
11287
11301
|
const isUsingNonDefaultAnalytics = reachDisableAnalytics !== reachabilityFlags['reachDisableAnalytics']?.default;
|
|
11288
11302
|
const isUsingNonDefaultVersion = reachVersion !== reachabilityFlags['reachVersion']?.default;
|
|
11289
|
-
const isUsingAnyReachabilityFlags = hasReachEcosystems || hasReachExcludePaths || isUsingNonDefaultAnalytics || isUsingNonDefaultConcurrency || isUsingNonDefaultMemoryLimit || isUsingNonDefaultTimeout || isUsingNonDefaultVersion ||
|
|
11303
|
+
const isUsingAnyReachabilityFlags = hasReachEcosystems || hasReachExcludePaths || isUsingNonDefaultAnalytics || isUsingNonDefaultConcurrency || isUsingNonDefaultMemoryLimit || isUsingNonDefaultTimeout || isUsingNonDefaultVersion || reachEnableAnalysisSplitting || reachLazyMode || reachSkipCache || reachUseOnlyPregeneratedSboms;
|
|
11290
11304
|
|
|
11291
11305
|
// Validate target constraints when --reach is enabled.
|
|
11292
11306
|
const reachTargetValidation = reach ? await validateReachabilityTarget(targets, cwd) : {
|
|
@@ -11375,9 +11389,10 @@ async function run$d(argv, importMeta, {
|
|
|
11375
11389
|
reachAnalysisTimeout: Number(reachAnalysisTimeout),
|
|
11376
11390
|
reachConcurrency: Number(reachConcurrency),
|
|
11377
11391
|
reachDebug: Boolean(reachDebug),
|
|
11378
|
-
|
|
11392
|
+
reachDetailedAnalysisLogFile: Boolean(reachDetailedAnalysisLogFile),
|
|
11379
11393
|
reachDisableAnalytics: Boolean(reachDisableAnalytics),
|
|
11380
11394
|
reachEcosystems,
|
|
11395
|
+
reachEnableAnalysisSplitting: Boolean(reachEnableAnalysisSplitting),
|
|
11381
11396
|
reachExcludePaths,
|
|
11382
11397
|
reachLazyMode: Boolean(reachLazyMode),
|
|
11383
11398
|
reachSkipCache: Boolean(reachSkipCache),
|
|
@@ -12026,9 +12041,10 @@ async function scanOneRepo(repoSlug, {
|
|
|
12026
12041
|
reachAnalysisTimeout: 0,
|
|
12027
12042
|
reachConcurrency: 1,
|
|
12028
12043
|
reachDebug: false,
|
|
12029
|
-
|
|
12044
|
+
reachDetailedAnalysisLogFile: false,
|
|
12030
12045
|
reachDisableAnalytics: false,
|
|
12031
12046
|
reachEcosystems: [],
|
|
12047
|
+
reachEnableAnalysisSplitting: false,
|
|
12032
12048
|
reachExcludePaths: [],
|
|
12033
12049
|
reachLazyMode: false,
|
|
12034
12050
|
reachSkipCache: false,
|
|
@@ -13318,8 +13334,10 @@ async function run$7(argv, importMeta, {
|
|
|
13318
13334
|
reachAnalysisTimeout,
|
|
13319
13335
|
reachConcurrency,
|
|
13320
13336
|
reachDebug,
|
|
13321
|
-
|
|
13337
|
+
reachDetailedAnalysisLogFile,
|
|
13338
|
+
reachDisableAnalysisSplitting: _reachDisableAnalysisSplitting,
|
|
13322
13339
|
reachDisableAnalytics,
|
|
13340
|
+
reachEnableAnalysisSplitting,
|
|
13323
13341
|
reachLazyMode,
|
|
13324
13342
|
reachSkipCache,
|
|
13325
13343
|
reachUseOnlyPregeneratedSboms,
|
|
@@ -13417,9 +13435,10 @@ async function run$7(argv, importMeta, {
|
|
|
13417
13435
|
reachAnalysisTimeout: Number(reachAnalysisTimeout),
|
|
13418
13436
|
reachConcurrency: Number(reachConcurrency),
|
|
13419
13437
|
reachDebug: Boolean(reachDebug),
|
|
13420
|
-
|
|
13438
|
+
reachDetailedAnalysisLogFile: Boolean(reachDetailedAnalysisLogFile),
|
|
13421
13439
|
reachDisableAnalytics: Boolean(reachDisableAnalytics),
|
|
13422
13440
|
reachEcosystems,
|
|
13441
|
+
reachEnableAnalysisSplitting: Boolean(reachEnableAnalysisSplitting),
|
|
13423
13442
|
reachExcludePaths,
|
|
13424
13443
|
reachLazyMode: Boolean(reachLazyMode),
|
|
13425
13444
|
reachSkipCache: Boolean(reachSkipCache),
|
|
@@ -15336,5 +15355,5 @@ process.on('unhandledRejection', async (reason, promise) => {
|
|
|
15336
15355
|
// eslint-disable-next-line n/no-process-exit
|
|
15337
15356
|
process.exit(1);
|
|
15338
15357
|
});
|
|
15339
|
-
//# debugId=
|
|
15358
|
+
//# debugId=3f1876f7-94f9-4026-a706-9269d8e0d179
|
|
15340
15359
|
//# sourceMappingURL=cli.js.map
|