From 9c3ad66a8c07de98d8533608bc699841d6fa257e Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 7 Feb 2026 14:27:09 +0800 Subject: [PATCH] Add `auditLevel` to pnpm-workspace.json --- 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