From 3f9d492846c87e7ba3c018c6f0c11c9e4e29071d Mon Sep 17 00:00:00 2001 From: Martin Torp Date: Thu, 29 Oct 2026 07:43:03 +0100 Subject: [PATCH] fix(scan): list `socket scan reach` in help The reach command was marked hidden, so `socket scan --help` never listed it even though it is a supported command. Unhide it and add it to the help snapshot. --- CHANGELOG.md | 1 + src/commands/scan/cmd-scan-reach.mts | 2 +- src/commands/scan/cmd-scan.test.mts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec3f67cd96..ec87921f46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Changed - Updated the Coana CLI to v `15.13.1`. +- `socket scan reach` now shows up in `socket scan --help`. ### Fixed - Reachability analysis of Gradle and sbt builds now sees the code of Kotlin Multiplatform and Android modules, and sbt sources placed directly in a project's directory. diff --git a/src/commands/scan/cmd-scan-reach.mts b/src/commands/scan/cmd-scan-reach.mts index 2213c1f44b..52383c848d 100644 --- a/src/commands/scan/cmd-scan-reach.mts +++ b/src/commands/scan/cmd-scan-reach.mts @@ -37,7 +37,7 @@ export const CMD_NAME = 'reach' const description = 'Compute full application reachability' -const hidden = true +const hidden = false // Not in reachabilityFlags: on `scan create` it is a general flag the --reach // guard must not reject. Reachability is always on here, so the description diff --git a/src/commands/scan/cmd-scan.test.mts b/src/commands/scan/cmd-scan.test.mts index 5544998019..1aa8e0ea72 100644 --- a/src/commands/scan/cmd-scan.test.mts +++ b/src/commands/scan/cmd-scan.test.mts @@ -30,6 +30,7 @@ describe('socket scan', async () => { diff See what changed between two Scans list List the scans for an organization metadata Get a scan's metadata + reach Compute full application reachability report Check whether a scan result passes the organizational policies (security, license) setup Start interactive configurator to customize default flag values for \`socket scan\` in this dir view View the raw results of a scan