Skip to content

Add dependency vulnerability scanning to CI pipeline #315

Description

@spaciousejar

Description

The project relies on numerous third-party packages (including bcrypt, axios, next, and many Radix UI components) but does not have a vulnerability scanning step in the CI/CD pipeline. While Dependabot is configured for version bumps, there is no explicit audit gate.

Risk

  • Known CVEs in dependencies could go unnoticed until they are exploited
  • Supply chain attacks via compromised packages would not be detected early
  • The bcrypt native compilation step introduces additional build-time risk

Suggested Fix

  1. Add npm audit (or bun audit) as a CI step that fails builds on high-severity findings
  2. Consider integrating Snyk or GitHub's built-in Dependabot alerts (already partially configured)
  3. Establish a regular cadence for dependency review and updates

Example CI step for an existing workflow:

- name: Run npm audit
  run: npm audit --audit-level=high

Severity: MEDIUM | Ref: PCS-005

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions