Convert the action from a Docker container action to a JavaScript (node24) action now that CLI v5 is a native binary
已經有一個關聯 PR 被合併了。
- #322 來自 @minijus —— 已合併
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- docker, github-actions, javascript, node.js, typescript
研究方向
Start by reading the action metadata (action.yml), Dockerfile, and entrypoint.sh to map the current inputs, outputs, and behavior. The issue proposes replacing these with a Node 24 action, CLI installation, and Octokit-based PR handling while preserving compatibility; define and implement that migration, then verify it across the listed runner platforms. The issue leaves substantial design and porting work, so it is not a small first contribution.
由索引模型根據 Issue 內容生成。
描述
Is your feature request related to a problem? Please describe.
crowdin/github-action is a Docker container action (runs.using: docker, image: Dockerfile). The runner builds the image from crowdin/cli every time a job uses the action, which means:
- It only runs on Linux runners with a Docker daemon. It doesn't work on macOS or Windows runners (#160).
- On self-hosted runners in Kubernetes (Actions Runner Controller), it requires Docker-in-Docker. DinD needs privileged pods, which many organizations don't allow. ARC's Kubernetes container-hooks mode doesn't support container actions built from a Dockerfile.
- Every run pulls
crowdin/clifrom Docker Hub and installs packages from Alpine apk mirrors. This is slow, can hit Docker Hub rate limits, and is hard to allow in restricted or air-gapped networks, where npm is typically already proxied (Artifactory, Nexus, etc.). - Files written into the workspace are owned by root (#284).
Describe the solution you'd like
Crowdin CLI v5 no longer needs Java. @crowdin/cli now installs a prebuilt standalone binary through platform packages (@crowdin/cli-linux-x64, -linux-arm64, -darwin-x64, -darwin-arm64, -win32-x64, and musl variants). That removes the main reason for shipping the action as a container.
Proposal: rewrite the action as a JavaScript action (runs.using: node24) that:
- Installs the requested CLI version from npm, or downloads the release binary, caching it with
@actions/tool-cache. Ideally it would also accept an optional input for an existing CLI onPATHor a custom npm registry. - Ports
entrypoint.shto TypeScript using@actions/core,@actions/execand Octokit. This replaces the bash,curlandjqsteps for PR creation, labels, assignees and reviewers. - Keeps the existing inputs and outputs so it's a drop-in replacement, released as a new major version (e.g.
v4) sov3users aren't affected.
Benefits:
- Works on Linux, macOS, Windows, x64 and arm64 (resolves #160).
- No Docker, DinD or privileged runners needed. Works with ARC in Kubernetes mode.
- Faster startup, because there's no image build on every run.
- Runs as the runner user, so there are no root-owned files (#284).
- Dependencies come only from npm, which is easy to mirror.
Describe alternatives you've considered
- A composite action that runs
npm i -g @crowdin/cliand then the existingentrypoint.sh. This is a smaller change, but it still depends on bash,git,curl,jqandgpgbeing on the runner, and it doesn't help Windows. - Calling the CLI directly in workflow steps instead of using the action. That loses the action's PR and branch handling, which is the main value of the action.
- Publishing a prebuilt image and using
docker://. This avoids the per-run build but still requires Docker or DinD.
Additional context
Related: #160 (macOS runner support), #167 (ARM, closed as a duplicate of #160), #284 (root-owned files).
Happy to help test a pre-release on self-hosted ARC runners.
🤖 Generated by Claude Opus 5.5 (claude-opus-5.5)
- 主要語言
- Shell
- 星號
- 244
- 分支
- 69
- 平均合併
- 4 天 23 小時
- 30 天內合併 PR
- 2
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
crowdin/github-action 的其他 Issue
-
Crowdin Action fails to detect existing pull request when using a non-main base branch and same-repo source branch可能重新可做 關聯的 PR 已關閉且未合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 30/100
crowdin/github-action#287 ·
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 45/100
crowdin/github-action#251 · 14 則留言 ·
-
enhancement
難度 3/5 1-2 天 新手友好度 42/100
crowdin/github-action#247 · 1 則留言 · 2 個 reaction ·
-
help wanted
難度 3/5 1-2 天 新手友好度 38/100
crowdin/github-action#220 · 2 則留言 ·
-
enhancement help wanted
難度 5/5 一週以上 新手友好度 25/100
crowdin/github-action#160 · 4 則留言 · 1 個 reaction ·
查看 crowdin/github-action 的全部 Issue
相似的 Issue
-
enhancement security severity:low
難度 2/5 1-3 小時 新手友好度 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
Frogging-Family/linux-tkg#1265 ·
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
community-scripts/core#217 ·
維護者通常 1 天內回覆
-
known-red S3: friction & debt
難度 2/5 1-3 小時 新手友好度 82/100
MedakaLang/medaka#4969 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆