Support reviewed npm audit baselines

This commit is contained in:
2026-09-01 20:06:16 +01:00
parent 8098495abf
commit 903e907225
5 changed files with 85 additions and 3 deletions
+2
View File
@@ -104,6 +104,7 @@ runner without placing them in the policy or report.
},
"allowDirectLifecycleScripts": {},
"archiveSizeExceptions": {},
"auditExceptions": {},
"sourceEvidenceExceptions": {},
"trustedRepositories": {
"example-package": "https://github.com/example/example-package"
@@ -123,6 +124,7 @@ runner without placing them in the policy or report.
whose registry manifest declares `preinstall`, `install`, or `postinstall`.
- `archiveSizeExceptions` permits exact package versions to use reviewed archive
limits above the project defaults.
- `auditExceptions` permits only listed GHSA advisories until each entry's expiry.
- `sourceEvidenceExceptions` permits only an exact package version to proceed when
source provenance or tag evidence is unavailable. Each entry requires a detailed
`reason` and an `expiresAt` ISO date, and produces a warning.