Skip to content

feat(audit): the security report opens with a verdict on the installed workspace - #103

Merged
flipvh merged 1 commit into
mainfrom
feat/audit-installed-verdict
Nov 17, 2026
Merged

flipvh merged 1 commit into
mainfrom
feat/audit-installed-verdict

Conversation

@flipvh

@flipvh flipvh commented Nov 17, 2026

Copy link
Copy Markdown
Member

pnpm cella audit never said whether the workspace as installed has a vulnerable package. The security pass audits a copy without its audit overrides, to decide which it still needs, so the report showed only that copy: 4.2.0 → 4.3.2 on a kept override read like a fix still to apply, while the lockfile held 4.3.2 already.

  • The security report opens with what pnpm audit finds in the installed workspace, overrides and ignores in place: ✓ installed: no open vulnerabilities · 5 fixed by an override · 1 ignored, or ⚠ installed: 2 vulnerable packages. The command already ran that audit for the table's dots; report mode now passes it on.
  • A package an override fixes shows the version the lockfile holds next to the one that resolves without it: 4.3.2 (4.2.0 without it). The group "override kept" is now "fixed by an override".
  • audit fix with updates to pick prints the same verdict line before the prompt, where it said pnpm audit reports nothing.

Before, on cella main:

security
────────
override kept (5)
● js-yaml   high      4.2.0 → 4.3.2       @hey-api/openapi-ts
● glob      moderate  13.0.6 → 14.0.2 ⚠   @serwist/vite +1

After:

security
────────
✓ installed: no open vulnerabilities · 5 fixed by an override

fixed by an override (5)
● js-yaml   high      4.3.2 (4.2.0 without it)      @hey-api/openapi-ts
● glob      moderate  14.0.6 ⚠ (13.0.6 without it)  @serwist/vite +1

Verification

  • The patched CLI in report mode against the cella checkout prints the "after" block above; pnpm audit there reports nothing.
  • A vulnerable workspace and a silent pnpm audit, run through the security pass's simulated pnpm in a throwaway test file, print ⚠ installed: 1 vulnerable package · 1 ignored and ⚠ installed: pnpm audit gave no answer.
  • pnpm check and the full suite (483 tests) pass. No test added: an output change.

Size

Kind Files Added Removed Net
Source 3 +71 -19 +52
Docs 1 +4 0 +4
Total 4 +75 -19 +56
  • Source: the verdict line, the locked version on an override's row, and passing the installed audit into the security pass; 12 of the lines are comments.
  • Docs: one README paragraph on what the report opens with.

…d workspace

The security pass audits a copy of the workspace without its audit overrides, so a report never said
whether the workspace as installed is vulnerable, and `4.2.0 → 4.3.2` on a kept override read like a
fix still to apply. The report now opens with what pnpm audit finds in the installed workspace (the
command already ran that audit), and a package an override fixes shows the locked version beside the
one that resolves without it. The group "override kept" is now "fixed by an override".
@flipvh
flipvh merged commit 1def56d into main Nov 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant