Skip to content

Commit afd5381

Browse files
authored
Add trustPolicy to pnpm-workspace.json (#5118)
Co-authored-by: btea <[email protected]>
1 parent 5e269f1 commit afd5381

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/schemas/json/pnpm-workspace.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,15 @@
796796
"preferOffline": {
797797
"description": "Bypass staleness checks for cached data. Missing data will still be requested from the server.",
798798
"type": "boolean"
799+
},
800+
"trustPolicy": {
801+
"description": "When set to no-downgrade, pnpm will fail if a package's trust level has decreased compared to previous releases. For example, if a package was previously published by a trusted publisher but now only has provenance or no trust evidence, installation will fail. This helps prevent installing potentially compromised versions.",
802+
"oneOf": [
803+
{
804+
"type": "string",
805+
"enum": ["off", "no-downgrade"]
806+
}
807+
]
799808
}
800809
},
801810
"additionalProperties": false

0 commit comments

Comments
 (0)