Repository navigation
ci(security): 前端 npm audit 收为生产依赖口径(--omit=dev) - #106
Merged
Merged
Conversation
braces 链 advisory 覆盖全部已发布版本且只在 eslint dev 工具链, 上游无补丁,force 降级维持否决——审计加 --omit=dev:生产依赖 仍按 high 级严格门禁,dev 工具链 DoS 不再挡门,CI 恢复全绿。 上游发补丁后 npm audit fix 并去掉 --omit=dev 即回全量口径。
11 of 12 tasks
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.
What & why
main 的 CI 因 braces 链(GHSA-vfj7-8cjw-p6xm)持续红:该 advisory 覆盖 braces 全部已发布版本、上游无补丁、唯一"修复"是被否决的 force 降级。随 #102 生产依赖漏洞已全部修复,这条链只存在于 devDependencies(eslint 工具链)。本 PR 把 CI 前端审计加
--omit=dev:生产依赖维持 high 级严格门禁,纯 dev 工具链的 DoS 级 advisory 不再挡门,CI 恢复全绿且生产安全标准不降。Fixes #105
Area
Verification
npm audit --omit=dev --audit-level=high:found 0 vulnerabilities(exit 0)npm audit --audit-level=high仅剩 braces 链 5 计数(dev 工具链,符合豁免预期)check_agent_docs.py通过;workflow 仅在 run 块内变更,yaml 结构未动Verifier verdict
纯 CI 配置 + 文档切片,CI 门禁即机器 Verifier——本 PR 自身的 security-scan 结果即为判定。
Checklist
issue-105-audit-omit-dev;正文Fixes #105Notes for reviewer
npm audit fix+ 删掉--omit=dev即回全量口径,步骤已写进 AGENTS.md 4.4。