Repository navigation
ci(security): add continuous dependency audit - #2223
Conversation
5476a72 to
9c01501
Compare
|
Thanks for this — I verified the workflow end to end rather than just reading it: Three non-blocking convention notes and one merge blocker:
Nothing else blocking — happy to approve. |
9c01501 to
8d53b45
Compare
|
@Astro-Han Thanks for the thorough review. Rebased onto main and resolved the conflict. Added concurrency to cancel superseded runs, while keeping PR scope broad to preserve audit coverage. Leaving scheduled-failure notifications for a follow-up until we decide where alerts should go. |
8d53b45 to
6d9ba03
Compare
Astro-Han
left a comment
There was a problem hiding this comment.
Heads-up: the CI on the rebased head is red on two fronts —
- audit job fails for real: the new production-dependency gate immediately found 2 vulnerabilities — js-yaml CVE-2026-59870 (moderate, fix not backported upstream) and the mermaid advisory family (GHSA-3rrr-jr9j-h3q3 prototype pollution, GHSA-2v8p-3f2j-5mp7 / GHSA-rhh3-jpg6-66xh DoS, high). The gate is doing its job; it needs a decision: upgrade/alias the affected deps, or explicitly document an accepted risk before this lands.
- test_workspaces fails in a fast script test:
[maka-dev] bootstrap failed Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/tmp/maka-boot-ExMCbm/desktop/dist/main/main.js'— a workspace bootstrap test can't find the built desktop main. Worth checking whether this is a flaky ordering issue or something the rebase introduced.
Run daily and dependency-change audits with registry signature verification and enforce the moderate release threshold. Update Hono past GHSA-8j4g-w8fx-2239 and refresh js-yaml and Mermaid past newly disclosed moderate advisories. Refs apache#2207
6d9ba03 to
3778eee
Compare
|
@Astro-Han Both CI failures are fixed, and all checks are passed. The new audit gate proved useful by catching newly disclosed vulnerabilities immediately |
The release audit gate (#2223) blocked the 0.1.8 build on DOMPurify's IN_PLACE hook removal advisory (moderate), transitive via @maka/ui -> mermaid. Lockfile moves dompurify to 3.4.13. Hand-edited three lockfile lines rather than letting npm rewrite the file: macOS npm strips the libc constraint blocks Linux resolution depends on (caught in review; the first draft of this PR carried exactly that stripping).
* fix(deps): bump dompurify past GHSA-55q2-fjhq-7xh7 The release audit gate (#2223) blocked the 0.1.8 build on DOMPurify's IN_PLACE hook removal advisory (moderate), transitive via @maka/ui -> mermaid. Lockfile moves dompurify to 3.4.13. Hand-edited three lockfile lines rather than letting npm rewrite the file: macOS npm strips the libc constraint blocks Linux resolution depends on (caught in review; the first draft of this PR carried exactly that stripping). * chore(licenses): regenerate third-party notices for dompurify 3.4.13
English
Summary
Security boundary
The audit workflow has read-only contents permission and no environment or secrets. Only production dependencies are installed, lifecycle scripts are disabled, and checkout credentials are not persisted. Registry, advisory, and signature failures remain blocking. The release workflow retains its existing structure and changes only the audit threshold from high to moderate.
Verification
Exclusions
This PR does not add CodeQL, Dependabot changes, auto-merge, additional scanners, release-age policy, application behavior changes, or new dependencies.
简体中文
摘要
安全边界
审计 workflow 只有 contents 只读权限,不使用 environment 或 secrets;只安装 production dependency、禁用 lifecycle script,并且不持久化 checkout credential。Registry、advisory 与 signature verification 失败都会阻止流程。Release workflow 保持原有结构,仅将 audit threshold 从 high 调整为 moderate。
验证
不在范围内
本 PR 不添加 CodeQL、Dependabot 变更、auto-merge、额外 scanner、release-age 策略、应用行为变更或新依赖。
Part of #2207