CI audit is non-blocking and nothing gates a release on known advisories
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 78/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, typescript
研究方向
閱讀 .github/workflows/ci.yml 第 111–115 行附近的內容,接著比較 .github/workflows/release.yml 和 .github/workflows/publish.yml 中的 bundle 與 build 工作。依照 issue 的說明,將會阻擋流程的 production 依賴稽核加入 release 路徑,同時讓 PR 稽核維持建議性質。透過一次展現新行為的執行來驗證 workflow 變更;issue 也列出 npm run build && npm test 以及 typecheck 和 lint 指令。
由索引模型根據 Issue 內容生成。
描述
Summary
CI audit is non-blocking and nothing gates a release on known advisories. The reasoning for PRs is sound, but the same leniency applies to the release path, where the .mcpb freezes the lockfile's production tree into an artifact users install. A critical advisory in shipped dependencies is currently visible only to someone who opens a green job's log. The project works directly on main with no PR review step, so nobody is prompted to look.
Where
.github/workflows/ci.yml:111.github/workflows/ci.yml:114.github/workflows/publish.yml:26.github/workflows/release.yml:126scripts/build-mcpb.mjs:41
Details
The only audit step is
# Report advisories in shipped (non-dev) dependencies without blocking
# the build; a new upstream advisory should not fail an unrelated PR.
- name: npm audit (production deps)
continue-on-error: true
run: npm audit --omit=dev --audit-level=high
(ci.yml:111-115). It fails today (a cross-spawn advisory with a fix available) and the job stays green. publish.yml (build job: npm ci, build, test, pack, lines 26-34) and release.yml (bundle job: npm ci, build, build-mcpb.mjs, lines 124-128) run no audit at all, and build-mcpb.mjs:41 passes --no-audit to the npm ci that fills the bundle's node_modules.
Impact
The reasoning for PRs is sound, but the same leniency applies to the release path, where the .mcpb freezes the lockfile's production tree into an artifact users install. A critical advisory in shipped dependencies is currently visible only to someone who opens a green job's log. The project works directly on main with no PR review step, so nobody is prompted to look.
How to see it
Open any recent CI run: the "npm audit (production deps)" step shows a failure annotation while the job passes; release 0.60.0's bundle was built from the same lockfile.
Suggested fix
Keep the PR step advisory, and add a blocking npm audit --omit=dev --audit-level=high to the release bundle job (release.yml, before build-mcpb.mjs) and to publish.yml's build job, or make the CI step blocking on push to main only (continue-on-error: ${{ github.event_name == 'pull_request' }}).
Acceptance criteria
- The workflow change is in place and a run shows the new behavior
Getting started
- Relevant files:
.github/workflows/ci.yml,.github/workflows/publish.yml,.github/workflows/release.yml,scripts/build-mcpb.mjs - How to run tests:
npm run build && npm test(alsonpm run typecheckandnpm run lint) - Related docs:
CONTRIBUTING.md,AGENTS.md
Filed by repo-audit/full-audit at b8156ef. Severity: medium. Effort: S. audit-key: ci|.github/workflows/ci.yml|npm-audit-continue-on-error
- 主要語言
- TypeScript
- 星號
- 1
- 分支
- 4
- 平均合併
- 3 天 4 小時
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TMHSDigital/screencast-mcp 的其他 Issue
-
dependencies effort: small good first issue priority: low
難度 1/5 1-3 小時 新手友好度 88/100
TMHSDigital/screencast-mcp#509 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
TMHSDigital/screencast-mcp#508 ·
維護者通常 1 天內回覆
-
dependencies effort: small good first issue priority: low
難度 2/5 1-3 小時 新手友好度 78/100
TMHSDigital/screencast-mcp#490 ·
維護者通常 1 天內回覆
-
effort: medium help wanted priority: low testing
難度 4/5 3-5 天 新手友好度 38/100
TMHSDigital/screencast-mcp#503 ·
維護者通常 1 天內回覆
-
effort: medium priority: low tech-debt
難度 4/5 3-5 天 新手友好度 56/100
TMHSDigital/screencast-mcp#502 ·
維護者通常 1 天內回覆
查看 TMHSDigital/screencast-mcp 的全部 Issue
相似的 Issue
-
from-review tech-debt testing
難度 2/5 1-3 小時 新手友好度 82/100
blamechris/chroxy#9520 ·
維護者通常 1 天內回覆
-
area:web complexity:S priority:P2 type:chore
難度 2/5 1-3 小時 新手友好度 84/100
nahuelcostac/agent-hub#104 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
snaglet-org/snaglet#78 ·
維護者通常 1 天內回覆
-
agent/guide documentation help wanted stage/010-actionable
難度 1/5 1 小時以內 新手友好度 82/100
kubestellar/console-marketplace#1101 ·
維護者通常 1 天內回覆
-
Java Edition Tests
難度 2/5 1-3 小時 新手友好度 72/100
JSPrismarine/JSPrismarine#4178 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆