Skip to content

Add npm audit and Snyk vulnerability scanning to CI with threshold enforcement #62

Description

@nanaf6203-bit

Area: Security
Priority: P1 — High

Description

Vulnerable dependencies introduce risk. There is no automated scan in CI. Add vulnerability scanning that blocks merging vulnerable code and tracks drift over time.

Acceptance Criteria

  • Add CI job security-audit running npm audit --audit-level=high
  • Job fails if vulnerabilities exceed threshold (high or critical)
  • Add weekly scheduled workflow (cron) for drift detection
  • Configurable Snyk integration via env var SNYK_TOKEN (no-op when unset)
  • Run snyk test --severity-threshold=high when token available
  • Suppress known false positives via .snyk policy file
  • Document vulnerability policy in docs/SECURITY.md

Technical Notes

  • Use github/codeql-action@v3 for additional code scanning
  • Allowed vulnerabilities: document each with rationale and expiry date

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions