depot-github-runners
它能做什么
本技能指导智能体在 Depot 的托管机器上运行 GitHub Actions 任务。适合希望更换运行器、又不想改写工作流的开发者。
适用场景
- ✓当你希望 GitHub Actions 任务在 Depot 而不是 GitHub 托管的运行器上运行时。
- ✓当你需要选择运行器规格,或选择 ARM、Windows 或 macOS 运行器的时候。
- ✓当 Depot 运行器任务失败,你需要帮助修复其设置时。
技能链接
https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-github-runners/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把 GitHub Actions 的构建任务切换到 Depot 运行器,并为大型构建选择合适的规格。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会修改工作流文件中的 runs-on 标签,这通常是唯一需要的改动。随后,它会帮助选择规格,并检查设置,例如组织归属和出口规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Depot GitHub Actions Runners
Depot provides managed, ephemeral, single-tenant GitHub Actions runners. Drop-in replacement for GitHub-hosted runners — change the runs-on label and everything else stays the same.
Requirement: Repository must be owned by a GitHub organization (not a personal account).
<!-- PostHog-local section. Keep it when resyncing from upstream; see UPSTREAM.md. -->Depot runners are not Depot CI
Depot runners keep GitHub Actions as the engine, so the workflow lives in .github/workflows/ and the checks still come from the github-actions app.
Depot CI is a different product. It reads .depot/workflows/, which GitHub Actions ignores, and posts its own check runs from one of three Depot apps.
Use the depot-ci skill for that one.
Its references/posthog-check-run-semantics.md compares what each engine reports for a skipped, empty-matrix or continue-on-error job, and how GitHub and the Trunk merge queue score those conclusions.
Setup
- Depot dashboard → GitHub Actions → Connect to GitHub → Install Depot GitHub App
- For public repos: GitHub org settings → Actions → Runner groups → Default → "Allow public repositories"
- Update
runs-onin your workflow files
Org Context Check for Multi-Org Users
If a user belongs to multiple organizations and expected repos/settings/runners are not visible, verify Depot org context first:
depot org show # Current org ID
depot org list # Orgs the user belongs to
depot org switch <org-id> # Optional: set default org
For commands that support it, pass --org <org-id> to target the org where the workflow/repo lives.
Runner Labels
Use a single label. Format: depot-{os}-{version}[-{arch}][-{size}]
Ubuntu (x86, AMD)
| Label | CPUs | RAM | Disk | $/min | Minutes multiplier |
|---|---|---|---|---|---|
depot-ubuntu-24.04 |
2 | 8 GB | 100 GB | $0.006 | 1x |
depot-ubuntu-24.04-4 |
4 | 16 GB | 130 GB | $0.012 | 2x |
depot-ubuntu-24.04-8 |
8 | 32 GB | 150 GB | $0.024 | 4x |
depot-ubuntu-24.04-16 |
16 | 64 GB | 180 GB | $0.048 | 8x |
depot-ubuntu-24.04-32 |
32 | 128 GB | 200 GB | $0.096 | 16x |
depot-ubuntu-24.04-64 |
64 | 256 GB | 250 GB | $0.192 | 32x |
The minutes multiplier is the billing driver: billed minutes = elapsed minutes × multiplier, so larger runners consume your included minutes faster.
Ubuntu 22.04 also available: depot-ubuntu-22.04, depot-ubuntu-22.04-4, etc.
Ubuntu (ARM — Graviton4)
Same sizes and pricing as Intel. Add -arm suffix:
depot-ubuntu-24.04-arm, depot-ubuntu-24.04-arm-4, depot-ubuntu-24.04-arm-8, etc.
Windows Server
| Label | CPUs | RAM | $/min | Minutes multiplier |
|---|---|---|---|---|
depot-windows-2025 |
2 | 8 GB | $0.008 | 2x |
depot-windows-2025-4 |
4 | 16 GB | $0.016 | 4x |
depot-windows-2025-8 through -64 |
8–64 | 32–256 GB | $0.032–$0.256 | 8x–64x |
Windows Server 2022 also available: depot-windows-2022, etc.
Windows limitation: No Hyper-V (AWS EC2 limitation), so Docker workloads that require it are unlikely to work.
macOS (Apple M2 on macOS 14/15, M4 on macOS 26)
| Label | CPUs | RAM | Disk | $/min |
|---|---|---|---|---|
depot-macos-26 / depot-macos-latest |
8 | 24 GB | 400 GB | $0.08 |
depot-macos-15 |
8 | 24 GB | 400 GB | $0.08 |
depot-macos-14 |
8 | 24 GB | 400 GB | $0.08 |
macOS is NOT fully elastic — fixed pool with FIFO queuing.
Aliases
depot-ubuntu-latest → Ubuntu 24.04, depot-windows-latest → Windows 2025, depot-macos-latest → macOS 26
Migration Example
jobs:
build:
# Before:
# runs-on: ubuntu-latest
# After:
runs-on: depot-ubuntu-24.04-4
steps:
- uses: actions/chec
常见问题
代码仓库需要满足什么条件?
本技能要求代码仓库归属于 GitHub 组织,而不是个人账户。
工作流的其他部分需要改动吗?
不需要。本技能指出,通常只需修改 runs-on 标签。
它涵盖网络规则吗?
涵盖。本技能包括为 Depot 运行器配置出口过滤。
详情
作者的原始描述
Configures Depot-managed GitHub Actions runners as a drop-in replacement for GitHub-hosted runners. Use when setting up or migrating GitHub Actions workflows to use Depot runners, choosing runner sizes (CPU/RAM), configuring runs-on labels, setting up ARM or Windows or macOS runners, troubleshooting GitHub Actions runner issues, configuring egress filtering, using Depot Cache with GitHub Actions, or running Dagger/Dependabot on Depot runners. Also use when the user mentions depot-ubuntu, depot-windows, depot-macos runner labels, or asks about faster/cheaper GitHub Actions runners. Not for Depo
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6812
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。
formatting-slack-messages
41k帮你的智能体按照 Slack 当前规则,制作排版清晰的消息、弹窗和主页界面。