Repository navigation
v3.43.2: runtime coverage security fix and Angular and enum false positives
Security
-
Runtime coverage no longer starts a package manager to find the
fallow-covsidecar. Before, sidecar discovery ranyarn bin,pnpm bin,bun pm binornpm rootin the analyzed project. A package manager reads config from the project, for example.yarnrcyarn-path,.yarnrc.ymlyarnPathand plugins, or.pnpmfile.cjs. As a result, a repository could run its own code when you analyzed it with--runtime-coverage. This happened before the sidecar signature check. Fallow now looks only in fixed install locations:- the
@fallow-cli/fallow-cov-<platform>package innode_modules; - the pnpm and Bun stores, and the Yarn
unpluggedfolder; node_modules/.bin,~/.fallow/binandPATH.
This applies to
health,auditandsecuritywith--runtime-coverage, to the MCP runtime-coverage tools, and to the sidecar check offallow coverage setup. Thanks @hgrgr for the report. (GHSA-m9pr-74q6-w362) - the
Bug fixes
-
Runtime coverage finds the sidecar in a Yarn Plug'n'Play project. Fallow now reads the signed binary from
.yarn/unplugged. In 3.43.1, discovery stopped at the unsigned wrapper, and the run failed with a signature error. -
An unsigned
node_modules/.bin/fallow-covwrapper no longer hides a working sidecar. Discovery now continues to~/.fallow/binandPATH. It uses the wrapper only when no other location has a sidecar, so the signature error names the file that exists. Before, a pnpm project with a customvirtualStoreDirfailed with a signature error even when~/.fallow/bin/fallow-covwas installed. -
fallow dead-codeno longer reports enum members that code reads through an alias, or the members of an enum that code passes as a whole value. Fallow now counts a member as used when code reads it throughconst Alias = Color, or through a class field such asprotected readonly levels = Levelandthis.levels.High. The same applies to an Angular template that reads that field. When code passes the whole enum as a value, as intakesEnum(Shape)or{ ref: Size }, each member counts as used, as withObject.values(Shape). Atypeof E, for example inkeyof typeof E, counts as a use of every member ofE. Members that no alias reads are still reported. Thanks @mattlewis92 for the report. (#4578) -
unused-component-inputsandunused-component-outputsfind member reads in more Angular template syntax. The template scanner now counts a member as used in these places:- a pipe argument, and an interpolation in a plain attribute;
- a keyed structural directive clause, and the condition of
@else if; - a style binding with a
%unit, and an explicitthis.orthis!.read; - the head of an ICU message, and a host binding value in backticks.
A component member with the same name as a
@forloop item elsewhere in the template is no longer hidden. An ICU case that opens into an interpolation no longer stops the scan. Thanks @mattlewis92 for the report. (#4576) -
Fallow counts the inputs and outputs of a base class as used from a subclass in another file. The subclass can extend the base class directly, through an intermediate class, or through a re-export. Its class body and its template now count the inputs and outputs that the base class declares. Thanks @mattlewis92 for the report. (#4577)
-
A Homebrew or
cargo installbinary now names a companion install that works for it. Such a binary has no npm launcher, so it does not find a global npm companion. Whenfallow-type-awareis missing on macOS or Linux, the message namesFALLOW_TYPE_AWARE_BINwith the global npm path. On Windows, it names the npm install offallow. Whenfallow-similar-codeis missing, the message names the release archive and the directory of the binary. The npm install keeps its messages and its companion lookup. (#4609) -
fallow agent installno longer registersfallow mcp-serverfor a binary that cannot serve MCP. The Homebrew andcargo install fallow-clibinary has nomcp-serversubcommand, but it answersfallow mcp-server --versionwith exit code 0. The MCP step then printed acodex mcp addcommand that failed. The step now accepts the running binary only when the answer comes from the MCP server. Without another launcher, the step skips withmcp_entry_unavailable, and its message namescargo install fallow-mcpand the release archive. (#4627)
Upgrade notes
- If you use
--runtime-coverageon repositories that you do not control, update to this release. Versions 2.39.0 to 3.43.1 can run code from the analyzed repository while they look for thefallow-covsidecar. See the security fix above. On an older version, setFALLOW_COV_BINto a signedfallow-covbinary.
Full Changelog: v3.43.1...v3.43.2