Skip to content

upgrading coana to version 15.10.13 and naming the workspace in reach errors - #1492

Merged
Martin Torp (mtorp) merged 3 commits into
v1.xfrom
coana-15.10.13
Aug 12, 2026
Merged

upgrading coana to version 15.10.13 and naming the workspace in reach errors#1492
Martin Torp (mtorp) merged 3 commits into
v1.xfrom
coana-15.10.13

Conversation

@socket-pr-bot

@socket-pr-bot socket-pr-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

Summary

  • Upgrades @coana-tech/cli from 15.10.10 to 15.10.13.
  • Fixes a user-facing regression where socket scan reach reported every reachability error against the repository root instead of naming the workspace it came from.
  • Fixes the scan reach e2e assertions that the same Coana change invalidated (they had been failing on every PR since, including the bump that shipped 1.1.156).
  • Records the user-facing notes under the changelog's ## [Unreleased] section.

Root cause

Coana 15.10.8 restructured the reachability output from ecosystem → workspace to ecosystem → subproject (build root) → workspace, and the two path fields swapped roles:

subprojectPath workspacePath
15.10.4 the workspace (packages/package-a) always .
15.10.8 the build root (.) the workspace (packages/package-a)

Verified against 15.10.13 by reading a real .socket.facts.json: three diagnostics entries, all subprojectPath: '.', with workspacePath carrying ., packages/package-a, and packages/package-b.

Production impact

extractReachabilityErrors still read subprojectPath, so the per-vulnerability warning degraded to:

  - GHSA-xxxx in foo@1.0.0 (.)          # was (packages/web) before 15.10.8

getFullWorkspacePath now labels the location exactly as Coana's own helper of that name does — joining a non-root build root with its workspace, and falling back cleanly when either side is absent (older Coana releases emit no workspacePath). This regression shipped in 1.1.155; it is not new in 15.10.13.

Test impact

The workspaceDiagnostics assertions still read subprojectPath, so a single-root npm monorepo produced [ '.', '.', '.' ] and failed with expected [ '.', '.', '.' ] to include 'packages/package-a' in two tests. They now assert workspace identity on workspacePath, plus that all three workspaces belong to the single . build root. findReachabilityForGhsa already matched on workspacePath, so the per-vulnerability assertions were unaffected.

Verification

  • cmd-scan-reach.e2e.test.mts: 9/9 pass against Coana 15.10.13 (was 7/9), run locally against the real API.
  • coana.test.mts + output-scan-reach.test.mts: 23 pass, including 5 new cases for the labelling helper and an assertion that the warning names the workspace.
  • pnpm run check (lint + type check) passes.

Versioning

Per the v1.x release process, this PR does not hand-write a version bump. package.json keeps the last released number (1.1.156) and the Publish to npm registry workflow derives the next one from the commits in range — a patch, so 1.1.157 — writing package.json + CHANGELOG.md itself and promoting the ## [Unreleased] block verbatim under the new version heading.

Coana Changelog

For details on what's included in this Coana release, see the Coana Changelogs.

@socket-security-staging

socket-security-staging Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​coana-tech/​cli@​15.10.13991008098100

View full report

@socket-security

socket-security Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​coana-tech/​cli@​15.10.13981008098100

View full report

Coana 15.10.8 split the reachability output into a build-root
subprojectPath and a per-workspace workspacePath, so a single-root npm
monorepo now reports one '.' subproject holding three workspaces. The
workspaceDiagnostics assertions still read subprojectPath and failed with
[ '.', '.', '.' ] not containing 'packages/package-a'.
Coana 15.10.8 made subprojectPath the build root and moved the workspace
to workspacePath, so the per-vulnerability warning printed (.) for every
error in a single-root repo instead of the workspace that failed. Label
the location the way Coana's own getFullWorkspacePath does.
@mtorp Martin Torp (mtorp) changed the title upgrading coana to version 15.10.13 upgrading coana to version 15.10.13 and naming the workspace in reach errors Aug 12, 2026
@mtorp
Martin Torp (mtorp) merged commit 59d6019 into v1.x Aug 12, 2026
10 checks passed
@mtorp
Martin Torp (mtorp) deleted the coana-15.10.13 branch August 12, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant