Skip to content

ci(claude): pin claude-code-action to v1.0.88#26

Merged
Sentixxx merged 1 commit into
mainfrom
ci/pin-claude-action-v1-0-88
Apr 27, 2026
Merged

ci(claude): pin claude-code-action to v1.0.88#26
Sentixxx merged 1 commit into
mainfrom
ci/pin-claude-action-v1-0-88

Conversation

@Sentixxx
Copy link
Copy Markdown
Contributor

Summary

PR #25 合入后 action 在 PR 上跑直接 fail:

Restoring .claude, .mcp.json, .claude.json, .gitmodules, .ripgreprc,
CLAUDE.md, CLAUDE.local.md, .husky from origin/main (PR head is untrusted)
Error: Action failed with error: ENOENT: no such file or directory, symlink

定位:本仓库 CLAUDE.md 是 symlink → AGENTS.md,正好踩 anthropics/claude-code-action 已知 bug。

  • 上游 issue:anthropics/claude-code-action#1187cpSync crashes with ENOENT when sensitive paths are symlinks
  • v1.0.89 起把 PR head 当不可信,复制 sensitive paths 时 cpSync 没处理 symlink 源 → crash
  • 修复 PR #1186 仍未合
  • 上游官方 workaround:钉版本到 v1.0.88

本 PR 把 uses: anthropics/claude-code-action@v1 改成 @v1.0.88,并加 TODO 注释,等 #1187 合并后再 unpin。

三问

  1. 对应哪条 ADR? N/A — 第三方 action 版本钉死,无架构决策。
  2. 对应哪个 spec? N/A — CI 基础设施。
  3. 对应哪些测试? N/A — workflow 由 GHA 解析器校验语法;行为只能在 merge 后触发实际事件 smoke test。

Test plan

合入后:

  • Sentixxx 在某个 PR 上 @claude 评论 → action 不再 ENOENT,正常进入 Claude 处理流程
  • Sentixxx 自指派 issue → 同上
  • action 日志里不应再出现 Restoring ... ENOENT: no such file or directory, symlink

已知边界

  • 钉死的 v1.0.88 不会自动收上游的 bug fix / feature;需要定期回看 #1187 / #1186 状态决定何时 unpin。
  • 如果上游修复后行为有破坏性变化,unpin 时要重新过 Test plan。

v1.0.89+ crashes with ENOENT when any sensitive path is a symlink.
This repo has CLAUDE.md -> AGENTS.md, which triggers the bug at the
"Restoring sensitive files from origin/main (PR head is untrusted)" step.

Pin until anthropics/claude-code-action#1187 is merged, then revert to @v1.

Refs: anthropics/claude-code-action#1187
@Sentixxx Sentixxx merged commit 3c799be into main Apr 27, 2026
@Sentixxx Sentixxx deleted the ci/pin-claude-action-v1-0-88 branch April 27, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant