Dependabot only scans the root manifest — add workspace packages/* directories, cooldown, and grouped updates

未关闭 适合新手
#1,212 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@d-oit 已经在做这个了。

开始于 2026年11月28日。

  • #1220 来自 @d-oit —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github, github-actions, yaml
领域
devops

调研方向

从 .github/dependabot.yml 开始,然后将其中的 npm 条目与工作区清单 packages/dks-core/package.json、packages/dks-cli/package.json 和 packages/dks-mcp/package.json 进行比较。添加缺失的目录条目以及所要求的冷却或分组选项,然后运行 scripts/check-dependency-downgrades.sh,以确认配置仍然有效。

由索引模型根据 Issue 内容生成。

描述

ci config deps priority: medium

Summary

.github/dependabot.yml declares a single npm ecosystem entry with directory: "/". In a pnpm workspace, that does not cover packages/dks-core, packages/dks-cli, and packages/dks-mcp, each of which has its own package.json with dependencies. Their dependency updates currently never generate PRs.

Evidence

  • .github/dependabot.yml:5 and :18 — both entries use directory: "/" only.
  • Workspace manifests exist: packages/dks-core/package.json, packages/dks-cli/package.json, packages/dks-mcp/package.json.
  • No cooldown: block is configured.

Impact

  • Security drift: shared-core, CLI, and MCP dependencies (including transitive security fixes) age silently — inconsistent with the repo's "Codacy zero tolerance" and dependabot-alert-check posture.
  • Supply-chain cooldown: several 2026 npm campaigns shipped malicious versions that were pulled within days. A 7-day Dependabot cooldown filters freshly-published releases without blocking security updates (cooldown does not apply to security PRs).

Proposed approach

  1. Add directory: "/packages/dks-core", /packages/dks-cli, /packages/dks-mcp npm entries (pnpm workspaces require per-directory entries).
  2. Add cooldown: default-days: 7 to each entry.
  3. Consider groups: for patch/minor devDependency bumps to reduce PR noise, matching the existing weekly cadence.
  4. Confirm scripts/check-dependency-downgrades.sh still passes with the new entries.

References

主要语言
TypeScript
星标
3
派生
2
平均合并
11 小时 49 分钟
30 天内合并 PR
102

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

d-oit/do-knowledge-studio 的其他 Issue

查看 d-oit/do-knowledge-studio 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。