Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

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

## [1.1.51](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.51) - 2025-12-23

### Added
- Added internal `--reach-lazy-mode` flag for reachability analysis.

### Changed
- Updated the Coana CLI to v `14.12.138`.

## [1.1.50](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.50) - 2025-12-19

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "socket",
"version": "1.1.50",
"version": "1.1.51",
"description": "CLI for Socket.dev",
"homepage": "https://github.com/SocketDev/socket-cli",
"license": "MIT AND OFL-1.1",
Expand Down Expand Up @@ -94,7 +94,7 @@
"@babel/preset-typescript": "7.27.1",
"@babel/runtime": "7.28.4",
"@biomejs/biome": "2.2.4",
"@coana-tech/cli": "14.12.134",
"@coana-tech/cli": "14.12.138",
"@cyclonedx/cdxgen": "11.11.0",
"@dotenvx/dotenvx": "1.49.0",
"@eslint/compat": "1.3.2",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/commands/ci/handle-ci.mts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export async function handleCi(autoManifest: boolean): Promise<void> {
reachDisableAnalytics: false,
reachEcosystems: [],
reachExcludePaths: [],
reachLazyMode: false,
reachSkipCache: false,
reachUseOnlyPregeneratedSboms: false,
reachVersion: undefined,
Expand Down
3 changes: 3 additions & 0 deletions src/commands/scan/cmd-scan-create.mts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ async function run(
reachDebug,
reachDisableAnalysisSplitting,
reachDisableAnalytics,
reachLazyMode,
reachSkipCache,
reachUseOnlyPregeneratedSboms,
reachVersion,
Expand Down Expand Up @@ -273,6 +274,7 @@ async function run(
reachDebug: boolean
reachDisableAnalysisSplitting: boolean
reachDisableAnalytics: boolean
reachLazyMode: boolean
reachSkipCache: boolean
reachUseOnlyPregeneratedSboms: boolean
reachVersion: string | undefined
Expand Down Expand Up @@ -575,6 +577,7 @@ async function run(
reachDisableAnalytics: Boolean(reachDisableAnalytics),
reachEcosystems,
reachExcludePaths,
reachLazyMode: Boolean(reachLazyMode),
reachSkipCache: Boolean(reachSkipCache),
reachUseOnlyPregeneratedSboms: Boolean(reachUseOnlyPregeneratedSboms),
reachVersion,
Expand Down
3 changes: 3 additions & 0 deletions src/commands/scan/cmd-scan-reach.mts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ async function run(
reachDebug,
reachDisableAnalysisSplitting,
reachDisableAnalytics,
reachLazyMode,
reachSkipCache,
reachUseOnlyPregeneratedSboms,
reachVersion,
Expand All @@ -143,6 +144,7 @@ async function run(
reachDebug: boolean
reachDisableAnalysisSplitting: boolean
reachDisableAnalytics: boolean
reachLazyMode: boolean
reachSkipCache: boolean
reachUseOnlyPregeneratedSboms: boolean
reachVersion: string | undefined
Expand Down Expand Up @@ -264,6 +266,7 @@ async function run(
reachDisableAnalytics: Boolean(reachDisableAnalytics),
reachEcosystems,
reachExcludePaths,
reachLazyMode: Boolean(reachLazyMode),
reachSkipCache: Boolean(reachSkipCache),
reachUseOnlyPregeneratedSboms: Boolean(reachUseOnlyPregeneratedSboms),
reachVersion,
Expand Down
1 change: 1 addition & 0 deletions src/commands/scan/create-scan-from-github.mts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ async function scanOneRepo(
reachDisableAnalytics: false,
reachEcosystems: [],
reachExcludePaths: [],
reachLazyMode: false,
reachSkipCache: false,
reachUseOnlyPregeneratedSboms: false,
reachVersion: undefined,
Expand Down
2 changes: 2 additions & 0 deletions src/commands/scan/perform-reachability-analysis.mts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type ReachabilityOptions = {
reachDisableAnalytics: boolean
reachEcosystems: PURL_Type[]
reachExcludePaths: string[]
reachLazyMode: boolean
reachSkipCache: boolean
reachUseOnlyPregeneratedSboms: boolean
reachVersion: string | undefined
Expand Down Expand Up @@ -187,6 +188,7 @@ export async function performReachabilityAnalysis(
...(reachabilityOptions.reachExcludePaths.length
? ['--exclude-dirs', ...reachabilityOptions.reachExcludePaths]
: []),
...(reachabilityOptions.reachLazyMode ? ['--lazy-mode'] : []),
...(reachabilityOptions.reachSkipCache ? ['--skip-cache-usage'] : []),
...(reachabilityOptions.reachUseOnlyPregeneratedSboms
? ['--use-only-pregenerated-sboms']
Expand Down
6 changes: 6 additions & 0 deletions src/commands/scan/reachability-flags.mts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export const reachabilityFlags: MeowFlags = {
description:
'List of paths to exclude from reachability analysis, as either a comma separated value or as multiple flags.',
},
reachLazyMode: {
type: 'boolean',
default: false,
description: 'Enable lazy mode for reachability analysis.',
hidden: true,
},
reachSkipCache: {
type: 'boolean',
default: false,
Expand Down