Skip to content

ci: add security audit step - #6

Merged
PiLep merged 2 commits into
mainfrom
cursor/ci-security-audit-0ea3
Jul 27, 2026
Merged

ci: add security audit step#6
PiLep merged 2 commits into
mainfrom
cursor/ci-security-audit-0ea3

Conversation

@PiLep

@PiLep PiLep commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a dedicated security job to .github/workflows/deploy.yml with a Security audit step (npm ci + npm audit --audit-level=high).
  • Triggers on pull_request and push to main.
  • Gates Docker build/push on a clean audit (needs: security); deploy still only runs on pushes to main.
  • Adds npm run audit for local runs.
  • Clears the audit by upgrading Next to 15.5.22, PostCSS to 8.5.23, and overriding nested postcss / sharp to patched versions. Also migrates serverExternalPackages and awaits headers() for Next 15.

Test plan

  • Confirm the security job runs on this PR
  • Confirm local npm audit --audit-level=high exits 0
  • Confirm npm run build succeeds on Next 15.5.22
  • Confirm the security job is green on this PR
Open in Web Open in Cursor 

Run npm audit (high+) on pull requests and main, and gate the
Docker build/push job on a clean audit result.

Co-authored-by: Pile <pierre@kanta.fr>
@PiLep
PiLep marked this pull request as ready for review July 27, 2026 19:33
Bump Next to 15.5.22 and PostCSS to 8.5.23, override nested
postcss/sharp to patched versions, and adapt Next 15 APIs so the
security audit job passes.

Co-authored-by: Pile <pierre@kanta.fr>
@PiLep
PiLep merged commit 0497ff7 into main Jul 27, 2026
2 checks passed
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.

2 participants