diff --git a/CHANGELOG.md b/CHANGELOG.md index da3a05add..ba30a5594 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index c4f01c6cf..8136dce4e 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6abc83cdb..841a3b700 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -124,8 +124,8 @@ importers: specifier: 2.2.4 version: 2.2.4 '@coana-tech/cli': - specifier: 14.12.134 - version: 14.12.134 + specifier: 14.12.138 + version: 14.12.138 '@cyclonedx/cdxgen': specifier: 11.11.0 version: 11.11.0 @@ -680,8 +680,8 @@ packages: '@bufbuild/protobuf@2.6.3': resolution: {integrity: sha512-w/gJKME9mYN7ZoUAmSMAWXk4hkVpxRKvEJCb3dV5g9wwWdxTJJ0ayOJAVcNxtdqaxDyFuC0uz4RSGVacJ030PQ==} - '@coana-tech/cli@14.12.134': - resolution: {integrity: sha512-Nr+BNFL8hS0qymGhm2kAmq4O/gUCWp4kK4wqa2YBkrb3I07IQABJvvHvIpjHwjWtzZ/t8UFfBISUBr2FKNF9MA==} + '@coana-tech/cli@14.12.138': + resolution: {integrity: sha512-dPkCRLnblrKLWC0rBHCILP2uvToJqA9EY6WvpvFfGYBjtf/xWu3Q92ByqFzvX8BryFt7FTfdh8t+n0Kc2kIxOw==} hasBin: true '@colors/colors@1.5.0': @@ -5323,7 +5323,7 @@ snapshots: '@bufbuild/protobuf@2.6.3': optional: true - '@coana-tech/cli@14.12.134': {} + '@coana-tech/cli@14.12.138': {} '@colors/colors@1.5.0': optional: true diff --git a/src/commands/ci/handle-ci.mts b/src/commands/ci/handle-ci.mts index 4f85e04e8..dca8ff37d 100644 --- a/src/commands/ci/handle-ci.mts +++ b/src/commands/ci/handle-ci.mts @@ -59,6 +59,7 @@ export async function handleCi(autoManifest: boolean): Promise { reachDisableAnalytics: false, reachEcosystems: [], reachExcludePaths: [], + reachLazyMode: false, reachSkipCache: false, reachUseOnlyPregeneratedSboms: false, reachVersion: undefined, diff --git a/src/commands/scan/cmd-scan-create.mts b/src/commands/scan/cmd-scan-create.mts index 402ecbd92..b07a0fe11 100644 --- a/src/commands/scan/cmd-scan-create.mts +++ b/src/commands/scan/cmd-scan-create.mts @@ -243,6 +243,7 @@ async function run( reachDebug, reachDisableAnalysisSplitting, reachDisableAnalytics, + reachLazyMode, reachSkipCache, reachUseOnlyPregeneratedSboms, reachVersion, @@ -273,6 +274,7 @@ async function run( reachDebug: boolean reachDisableAnalysisSplitting: boolean reachDisableAnalytics: boolean + reachLazyMode: boolean reachSkipCache: boolean reachUseOnlyPregeneratedSboms: boolean reachVersion: string | undefined @@ -575,6 +577,7 @@ async function run( reachDisableAnalytics: Boolean(reachDisableAnalytics), reachEcosystems, reachExcludePaths, + reachLazyMode: Boolean(reachLazyMode), reachSkipCache: Boolean(reachSkipCache), reachUseOnlyPregeneratedSboms: Boolean(reachUseOnlyPregeneratedSboms), reachVersion, diff --git a/src/commands/scan/cmd-scan-reach.mts b/src/commands/scan/cmd-scan-reach.mts index c9b701244..caa304e65 100644 --- a/src/commands/scan/cmd-scan-reach.mts +++ b/src/commands/scan/cmd-scan-reach.mts @@ -127,6 +127,7 @@ async function run( reachDebug, reachDisableAnalysisSplitting, reachDisableAnalytics, + reachLazyMode, reachSkipCache, reachUseOnlyPregeneratedSboms, reachVersion, @@ -143,6 +144,7 @@ async function run( reachDebug: boolean reachDisableAnalysisSplitting: boolean reachDisableAnalytics: boolean + reachLazyMode: boolean reachSkipCache: boolean reachUseOnlyPregeneratedSboms: boolean reachVersion: string | undefined @@ -264,6 +266,7 @@ async function run( reachDisableAnalytics: Boolean(reachDisableAnalytics), reachEcosystems, reachExcludePaths, + reachLazyMode: Boolean(reachLazyMode), reachSkipCache: Boolean(reachSkipCache), reachUseOnlyPregeneratedSboms: Boolean(reachUseOnlyPregeneratedSboms), reachVersion, diff --git a/src/commands/scan/create-scan-from-github.mts b/src/commands/scan/create-scan-from-github.mts index b5d370053..933521ebb 100644 --- a/src/commands/scan/create-scan-from-github.mts +++ b/src/commands/scan/create-scan-from-github.mts @@ -257,6 +257,7 @@ async function scanOneRepo( reachDisableAnalytics: false, reachEcosystems: [], reachExcludePaths: [], + reachLazyMode: false, reachSkipCache: false, reachUseOnlyPregeneratedSboms: false, reachVersion: undefined, diff --git a/src/commands/scan/perform-reachability-analysis.mts b/src/commands/scan/perform-reachability-analysis.mts index 44dfa81d9..ee71f5e4b 100644 --- a/src/commands/scan/perform-reachability-analysis.mts +++ b/src/commands/scan/perform-reachability-analysis.mts @@ -22,6 +22,7 @@ export type ReachabilityOptions = { reachDisableAnalytics: boolean reachEcosystems: PURL_Type[] reachExcludePaths: string[] + reachLazyMode: boolean reachSkipCache: boolean reachUseOnlyPregeneratedSboms: boolean reachVersion: string | undefined @@ -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'] diff --git a/src/commands/scan/reachability-flags.mts b/src/commands/scan/reachability-flags.mts index dd4b852f4..0e9a348df 100644 --- a/src/commands/scan/reachability-flags.mts +++ b/src/commands/scan/reachability-flags.mts @@ -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,