Repository navigation
ci(claude): install pnpm deps and allow build commands for Claude - #31
Conversation
审阅者指南(小型 PR 中折叠显示)审阅者指南Claude CI 工作流现在会配置 LTS Node.js/pnpm 环境,并在运行 Claude Code 前安装项目依赖;同时扩展其允许使用的工具,以支持依赖管理、构建、脚本和 TypeScript 命令。 Claude CI 环境设置流程图flowchart TD
Checkout[Checkout repository] --> Node[Setup LTS Node.js]
Node --> Pnpm[Install pnpm globally]
Pnpm --> Dependencies[Install project dependencies with pnpm i]
Dependencies --> Claude[Run Claude Code]
Claude --> Commands[Allow dependency, build, script, and TypeScript commands]
文件级变更
提示和命令与 Sourcery 互动
自定义你的体验访问你的控制面板以:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideThe Claude CI workflow now provisions an LTS Node.js/pnpm environment and installs project dependencies before running Claude Code, while expanding its allowed tools to support dependency, build, script, and TypeScript commands. Flow diagram for Claude CI environment setupflowchart TD
Checkout[Checkout repository] --> Node[Setup LTS Node.js]
Node --> Pnpm[Install pnpm globally]
Pnpm --> Dependencies[Install project dependencies with pnpm i]
Dependencies --> Claude[Run Claude Code]
Claude --> Commands[Allow dependency, build, script, and TypeScript commands]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Deploying ipe-plugin-registry with
|
| Latest commit: |
709922b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7ca9695d.plugin-registry.pages.dev |
| Branch Preview URL: | https://ci-claude-allow-pnpm.plugin-registry.pages.dev |
There was a problem hiding this comment.
嘿——我已经审查了你的更改,整体看起来很棒!
Sourcery 评估
需要人工审查。 此更改修改了 Claude 工作流的执行策略,并授予代理安装软件包、运行软件包脚本以及执行任意 pnpm exec 命令的能力。如果这一信任边界过于宽泛,提示词或由仓库控制的脚本可能会执行非预期代码,或暴露 CI 凭据;回滚可以移除后续运行的权限,但无法撤销已经执行的任何操作。
Original comment in English
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. This changes the Claude workflow's execution policy and grants the agent package-install, package-script, and arbitrary pnpm exec capabilities. If that trust boundary is too broad, a prompt or repository-controlled script could execute unintended code or expose CI credentials; reverting removes the permission for future runs, but cannot undo anything already executed.
Sourcery 总结
支持 Claude Code CI 运行安装项目依赖,并执行已批准的构建和验证命令。
增强功能:
CI:
Original summary in English
Summary by Sourcery
Enable Claude Code CI runs to install project dependencies and execute approved build and validation commands.
Enhancements:
CI: