Skip to content

chore(security): add dev:safe audit-gate#34

Merged
johnnywrightiv merged 2 commits into
mainfrom
chore/safe-dev-gate
May 30, 2026
Merged

chore(security): add dev:safe audit-gate#34
johnnywrightiv merged 2 commits into
mainfrom
chore/safe-dev-gate

Conversation

@johnnywrightiv

Copy link
Copy Markdown
Owner

Summary

  • Adds scripts/safe-dev.js — pre-flight that blocks next dev when npm audit reports high/critical vulnerabilities.
  • Adds npm run dev:safe — runs audit, then next dev -H 127.0.0.1 on clean.
  • dev script untouched.

Test plan

  • CI green (type-check, lint, build)
  • Vercel preview builds
  • npm run dev:safe locally launches dev server bound to 127.0.0.1

Block dev server start when npm audit reports high/critical vulnerabilities.
New `dev:safe` script runs scripts/safe-dev.js, which audits then launches
`next dev -H 127.0.0.1` only on clean. Original `dev` left untouched.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented May 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Ready Ready Preview, Comment May 30, 2026 11:51pm

eslint-plugin-typescript no-require-imports + prettier rejected the CJS
version. Functional behavior unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@johnnywrightiv johnnywrightiv merged commit 4bfdeb6 into main May 30, 2026
5 checks passed
@johnnywrightiv johnnywrightiv deleted the chore/safe-dev-gate branch May 30, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant