Fail the build on high-severity dependency advisories
维护者通常 4 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, json, typescript
- 领域
- ci-cd, documentation, security
调研方向
Start by reading website/package.json, .github/workflows/pr-build-website.yml, the deploy workflow, and TRIAGE.md. Decide and document how unfixable high-severity advisories such as braces and node-forge are handled, then add and verify the audit step after npm ci in both build paths. Done means high and critical findings fail where intended, while the documented exception or scope policy prevents an indiscriminate gate from blocking every build.
由索引模型根据 Issue 内容生成。
描述
Problem statement
website/package.json defines audit:ci (npm audit --audit-level=high), and no workflow runs it. Grepping .github/workflows/ for npm audit or audit:ci returns nothing.
So a dependency with a known high-severity advisory can be merged today, and the first anyone hears about it is a Dependabot alert after the fact. The current open alerts (node-forge, braces) are exactly the class of problem a gate would have surfaced at the point of change rather than in the Security tab later.
Proposed solution
Add an advisory check to the existing PR build gate (pr-build-website.yml) and to the deploy workflow, so the same step runs on the way in and on the way to production:
- Run
npm run audit:ci(ornpm audit --audit-level=high) afternpm ci. - Fail the job on high or critical findings.
- Do not fail on moderate or low, otherwise the gate becomes noise and gets bypassed.
Open question worth settling in the PR: whether to gate on findings with no available fix. braces (CVE-2026-93687) and node-forge (CVE-2026-85393) currently have no patched release, so a strict gate would block every build. The gate is only useful if the unfixable set is explicitly allow-listed, or if npm audit is run with --omit=dev so build-tool findings do not gate releases.
Scope and impact
Touches one workflow file. Risk is a gate that reddens builds for advisories nobody can fix; the allow-list decision above needs to be made first, and should be written into TRIAGE.md so it does not drift.
Acceptance criteria:
- High and critical advisories fail the PR build
- The unfixable set is documented rather than silently tolerated
-
TRIAGE.mddescribes the gate alongside Dependabot and CodeQL
Absorbed from #339
#339 was closed when its alerts resolved themselves (the braces advisory was withdrawn and website/yarn.lock was deleted). Its third acceptance box moved here, because this issue already owns the TRIAGE.md write-up:
-
TRIAGE.mdalso states the dismissal bar: who may dismiss a finding, which reasons are acceptable, and that a dismissal needs a comment naming the condition that reopens it.
- 主要语言
- TypeScript
- 星标
- 13
- 派生
- 24
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 16
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IntersectMBO/developer-experience 的其他 Issue
-
Rename the q4-2025 sesion-notes folder to session-notes, and keep its URL working可能已有人在做 @IanoNjuguna 今天认领。 未关闭documentation Low Priority
难度 2/5 1-3 小时 新手友好度 62/100
IntersectMBO/developer-experience#406 ·
维护者通常 4 天内回复
-
react 19: the Dependabot halves cannot resolve alone, so the bump needs one combined PR可能已有人在做 @IanoNjuguna 今天认领。 未关闭dependencies
难度 2/5 1-3 小时 新手友好度 70/100
IntersectMBO/developer-experience#403 ·
维护者通常 4 天内回复
-
Document colour roles in the brand baseline, and resolve the gradient and alpha restrictions it contradicts可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭documentation
难度 2/5 1-3 小时 新手友好度 72/100
IntersectMBO/developer-experience#376 ·
维护者通常 4 天内回复
-
documentation pinned
难度 2/5 1-3 小时 新手友好度 90/100
IntersectMBO/developer-experience#363 · 1 条评论 ·
维护者通常 4 天内回复
-
documentation pinned
难度 2/5 1-3 小时 新手友好度 88/100
IntersectMBO/developer-experience#362 · 1 条评论 ·
维护者通常 4 天内回复
查看 IntersectMBO/developer-experience 的全部 Issue
相似的 Issue
-
[UI] Guard webApis against undefined window in SSR environments可能已有人在做 @madhavzanwar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
headroomlabs-ai/headroom#4992 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
paperclipai/paperclip#22575 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 82/100
lingdojo/kana-dojo#34502 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
bug frontend good first issue help wanted
难度 2/5 1-3 小时 新手友好度 86/100
nikhilb2/simple_invoicing#935 ·