Repository navigation
feat(audit): the security report opens with a verdict on the installed workspace - #103
Merged
Merged
Conversation
…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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pnpm cella auditnever 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.2on a kept override read like a fix still to apply, while the lockfile held 4.3.2 already.pnpm auditfinds 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.4.3.2 (4.2.0 without it). The group "override kept" is now "fixed by an override".audit fixwith updates to pick prints the same verdict line before the prompt, where it saidpnpm audit reports nothing.Before, on cella main:
After:
Verification
pnpm auditthere reports nothing.pnpm audit, run through the security pass's simulated pnpm in a throwaway test file, print⚠ installed: 1 vulnerable package · 1 ignoredand⚠ installed: pnpm audit gave no answer.pnpm checkand the full suite (483 tests) pass. No test added: an output change.Size