ci: add security audit step - #6
Merged
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
securityjob to.github/workflows/deploy.ymlwith a Security audit step (npm ci+npm audit --audit-level=high).pull_requestandpushtomain.needs: security); deploy still only runs on pushes tomain.npm run auditfor local runs.15.5.22, PostCSS to8.5.23, and overriding nestedpostcss/sharpto patched versions. Also migratesserverExternalPackagesand awaitsheaders()for Next 15.Test plan
securityjob runs on this PRnpm audit --audit-level=highexits 0npm run buildsucceeds on Next 15.5.22securityjob is green on this PR