From 072ee514bd28367a8e87835b3beab3ca81b07f7f Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 7 Feb 2026 14:32:26 +0800 Subject: [PATCH] Add `auditLevel` to pnpm-workspace.json (#5352) Co-authored-by: btea --- src/schemas/json/pnpm-workspace.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/schemas/json/pnpm-workspace.json b/src/schemas/json/pnpm-workspace.json index 276236bf49d..003e50a80df 100644 --- a/src/schemas/json/pnpm-workspace.json +++ b/src/schemas/json/pnpm-workspace.json @@ -830,6 +830,15 @@ "trustPolicyIgnoreAfter": { "description": "Allows ignoring the trust policy check for packages published more than the specified number of minutes ago. This is useful when enabling strict trust policies, as it allows older versions of packages (which may lack a process for publishing with signatures or provenance) to be installed without manual exclusion, assuming they are safe due to their age.", "type": "number" + }, + "auditLevel": { + "description": "Controls the level of issues reported by `pnpm audit`. When set to 'low', all vulnerabilities are reported. When set to 'moderate', 'high', or 'critical', only vulnerabilities with that severity or higher are reported.", + "oneOf": [ + { + "type": "string", + "enum": ["low", "moderate", "high", "critical"] + } + ] } }, "additionalProperties": false