Repository navigation
Feat/dependency audit 2214 - #2265
Merged
Merged
Conversation
|
@Trusty08 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
closes #2214 |
This branch had an error being deployed
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.
closes #2214
Introduces a scheduled and PR-triggered CI workflow that scans both the backend and frontend dependency trees for known vulnerabilities, failing on any high or critical advisory.
Changes
.github/workflows/security-audit.yml— new workflow with two jobs (audit-backend,audit-frontend), triggered on PRs that touch lockfiles orpackage.json, on a weekly Monday schedule, and on manual dispatch.backend/.audit-ci.jsonc—audit-ciconfig for the backend; threshold set tohigh, empty allowlist ready for reviewed exceptions.frontend/.audit-ci.jsonc— same for the frontend.Tool choice:
audit-cipnpm audit --audit-level=highhas no native allowlist — you'd have to suppress exit codes or grep output, both fragile.audit-cireads a config file, supports pnpm's output format natively, prints a clean summary table, and exits non-zero on threshold violations. It runs viapnpm dlxso nothing is added topackage.json.Allowlist mechanism
Add a GHSA advisory ID to the
"allowlist"array in the relevant.audit-ci.jsoncwith an inline comment explaining why it was accepted and when to revisit. An empty allowlist means any unreviewed high/critical advisory fails the job.Schedule
The weekly cron (
0 8 * * 1) catches advisories published after a dependency was already merged — something a PR-only trigger cannot catch.