Repository navigation
feat(scan): add --reach-incomplete-analysis-as-error - #1805
Jeppe Fredsgaard Blaabjerg (jfblaa) merged 6 commits into
Conversation
…covers The help listed timeouts and OOM as analysis errors without saying that an analysis that stops early at the timeout or memory limit, but still returns results, is not one: Coana reports what it found, and the vulnerabilities it found no path to as unreachable.
PR SummaryLow Risk Overview The new wording states that an analysis that stops early at the timeout or memory limit but still returns results is not an error. That distinguishes real failures (parse errors, etc.) from cases where Coana returns partial reachability results and marks unchecked vulnerabilities as unreachable. The same description is updated in Reviewed by Cursor Bugbot for commit 4afe6ff. Configure here. |
An analysis that stops early at the timeout or memory limit reports the vulnerabilities it found no path to as unreachable. The new flag passes Coana's --incomplete-analysis-as-error, which reports them as analysis errors instead: the scan halts, or with --reach-continue-on-analysis-errors falls back to precomputed results. The --reach-continue-on-analysis-errors help now says how the two combine, in place of the sentence the previous commit added.
An early-stopped analysis can already be an error when it reached no dependencies; the flag turns its unreachable verdicts into errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…alysis-errors-help # Conflicts: # test/snapshots/termless/cli.native.socket-help-scan-create.svg # test/snapshots/termless/cli.native.socket-help-scan-reach.svg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
socket scan create --reachandsocket scan reachgain--reach-incomplete-analysis-as-error. An analysis that stops early at the timeout or memory limit reports the vulnerabilities it found no path to as unreachable, so a passing scan does not mean the analysis finished. With the flag, socket-cli passes Coana's--incomplete-analysis-as-error, which reports those vulnerabilities as analysis errors instead: the scan halts, or with--reach-continue-on-analysis-errorsfalls back to precomputed results. The--reach-continue-on-analysis-errorshelp now says how the two combine.Needs a Coana version with coana-tech/coana-package-manager#2917 (15.15.10 or later, which
v1.xpins); older versions reject the option.Changelog (draft)
--reach-incomplete-analysis-as-errortosocket scan create --reachandsocket scan reach: a vulnerability whose analysis stopped early (e.g. at the timeout or memory limit) without finding a reachable path is reported as an analysis error instead of unreachable.