Skip to content

[TEST] Add pnpm audit gate to PR workflow #653

@wheval

Description

@wheval

Summary

Integrate pnpm audit into PR workflow with allowlist file and failure triage documentation.

Background

Audit gate needs exemption process for false positives; medium includes allowlist JSON and docs.

This is a medium task: expect multiple files, tests, and integration with existing flows—not a single-line or docs-only change.

Scope

  • .github/workflows/ci.yml
  • docs/security/dependency-audit.md
  • .pnpm-audit-allowlist.json

Files to create / modify

CI job on PR; allowlist with justification per advisory; CONTRIBUTING triage steps.

Example implementation

pnpm audit --audit-level=high || node scripts/check-audit-allowlist.js

Acceptance criteria

  • High vulns fail PR unless allowlisted
  • Allowlist requires GH issue link per entry
  • Weekly scheduled audit optional
  • Docs explain how to refresh lockfile

Difficulty

Medium

Labels

enhancement, medium, security, developer-experience

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions