Skip to content

Commit 4761498

Browse files
mtorpjdalton
andauthored
add --reach-lazy-mode. update coana to v138 (#998)
* add --reach-lazy-mode. update coana to v138 * add missing option validation --------- Co-authored-by: John-David Dalton <[email protected]>
1 parent c3659cf commit 4761498

File tree

9 files changed

+32
-7
lines changed

9 files changed

+32
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [1.1.51](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.51) - 2025-12-23
8+
9+
### Added
10+
- Added internal `--reach-lazy-mode` flag for reachability analysis.
11+
12+
### Changed
13+
- Updated the Coana CLI to v `14.12.138`.
14+
715
## [1.1.50](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.50) - 2025-12-19
816

917
### Fixed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket",
3-
"version": "1.1.50",
3+
"version": "1.1.51",
44
"description": "CLI for Socket.dev",
55
"homepage": "https://github.com/SocketDev/socket-cli",
66
"license": "MIT AND OFL-1.1",
@@ -94,7 +94,7 @@
9494
"@babel/preset-typescript": "7.27.1",
9595
"@babel/runtime": "7.28.4",
9696
"@biomejs/biome": "2.2.4",
97-
"@coana-tech/cli": "14.12.134",
97+
"@coana-tech/cli": "14.12.138",
9898
"@cyclonedx/cdxgen": "11.11.0",
9999
"@dotenvx/dotenvx": "1.49.0",
100100
"@eslint/compat": "1.3.2",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commands/ci/handle-ci.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export async function handleCi(autoManifest: boolean): Promise<void> {
5959
reachDisableAnalytics: false,
6060
reachEcosystems: [],
6161
reachExcludePaths: [],
62+
reachLazyMode: false,
6263
reachSkipCache: false,
6364
reachUseOnlyPregeneratedSboms: false,
6465
reachVersion: undefined,

src/commands/scan/cmd-scan-create.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ async function run(
243243
reachDebug,
244244
reachDisableAnalysisSplitting,
245245
reachDisableAnalytics,
246+
reachLazyMode,
246247
reachSkipCache,
247248
reachUseOnlyPregeneratedSboms,
248249
reachVersion,
@@ -273,6 +274,7 @@ async function run(
273274
reachDebug: boolean
274275
reachDisableAnalysisSplitting: boolean
275276
reachDisableAnalytics: boolean
277+
reachLazyMode: boolean
276278
reachSkipCache: boolean
277279
reachUseOnlyPregeneratedSboms: boolean
278280
reachVersion: string | undefined
@@ -460,6 +462,7 @@ async function run(
460462
isUsingNonDefaultTimeout ||
461463
isUsingNonDefaultVersion ||
462464
reachDisableAnalysisSplitting ||
465+
reachLazyMode ||
463466
reachSkipCache ||
464467
reachUseOnlyPregeneratedSboms
465468

@@ -575,6 +578,7 @@ async function run(
575578
reachDisableAnalytics: Boolean(reachDisableAnalytics),
576579
reachEcosystems,
577580
reachExcludePaths,
581+
reachLazyMode: Boolean(reachLazyMode),
578582
reachSkipCache: Boolean(reachSkipCache),
579583
reachUseOnlyPregeneratedSboms: Boolean(reachUseOnlyPregeneratedSboms),
580584
reachVersion,

src/commands/scan/cmd-scan-reach.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ async function run(
127127
reachDebug,
128128
reachDisableAnalysisSplitting,
129129
reachDisableAnalytics,
130+
reachLazyMode,
130131
reachSkipCache,
131132
reachUseOnlyPregeneratedSboms,
132133
reachVersion,
@@ -143,6 +144,7 @@ async function run(
143144
reachDebug: boolean
144145
reachDisableAnalysisSplitting: boolean
145146
reachDisableAnalytics: boolean
147+
reachLazyMode: boolean
146148
reachSkipCache: boolean
147149
reachUseOnlyPregeneratedSboms: boolean
148150
reachVersion: string | undefined
@@ -264,6 +266,7 @@ async function run(
264266
reachDisableAnalytics: Boolean(reachDisableAnalytics),
265267
reachEcosystems,
266268
reachExcludePaths,
269+
reachLazyMode: Boolean(reachLazyMode),
267270
reachSkipCache: Boolean(reachSkipCache),
268271
reachUseOnlyPregeneratedSboms: Boolean(reachUseOnlyPregeneratedSboms),
269272
reachVersion,

src/commands/scan/create-scan-from-github.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ async function scanOneRepo(
257257
reachDisableAnalytics: false,
258258
reachEcosystems: [],
259259
reachExcludePaths: [],
260+
reachLazyMode: false,
260261
reachSkipCache: false,
261262
reachUseOnlyPregeneratedSboms: false,
262263
reachVersion: undefined,

src/commands/scan/perform-reachability-analysis.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type ReachabilityOptions = {
2222
reachDisableAnalytics: boolean
2323
reachEcosystems: PURL_Type[]
2424
reachExcludePaths: string[]
25+
reachLazyMode: boolean
2526
reachSkipCache: boolean
2627
reachUseOnlyPregeneratedSboms: boolean
2728
reachVersion: string | undefined
@@ -187,6 +188,7 @@ export async function performReachabilityAnalysis(
187188
...(reachabilityOptions.reachExcludePaths.length
188189
? ['--exclude-dirs', ...reachabilityOptions.reachExcludePaths]
189190
: []),
191+
...(reachabilityOptions.reachLazyMode ? ['--lazy-mode'] : []),
190192
...(reachabilityOptions.reachSkipCache ? ['--skip-cache-usage'] : []),
191193
...(reachabilityOptions.reachUseOnlyPregeneratedSboms
192194
? ['--use-only-pregenerated-sboms']

src/commands/scan/reachability-flags.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export const reachabilityFlags: MeowFlags = {
5555
description:
5656
'List of paths to exclude from reachability analysis, as either a comma separated value or as multiple flags.',
5757
},
58+
reachLazyMode: {
59+
type: 'boolean',
60+
default: false,
61+
description: 'Enable lazy mode for reachability analysis.',
62+
hidden: true,
63+
},
5864
reachSkipCache: {
5965
type: 'boolean',
6066
default: false,

0 commit comments

Comments
 (0)