github-actions-runtime-upgrade-conventions — скилл для GitHub Copilot
Скилл обновляет версии GitHub Actions до поддерживаемых runtime, сохраняя поведение workflow. Пригодится при предупреждениях об устаревшем Node.js или другом runtime.
npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventionsЧто делает github-actions-runtime-upgrade-conventions
Скилл помогает редактировать workflow в .github/workflows/*.yml и .github/workflows/*.yaml, когда action использует устаревший runtime. Он предлагает совместимую стабильную major-версию, сохраняет текущие триггеры и permissions, а изменения советует вносить по одному action за коммит.
Для финальной рекомендации используются полные commit SHA вместо изменяемых тегов и веток вроде @v4 или @main. После обновления нужно проверить разбор workflow, повторно запустить затронутые workflow, убедиться в создании ожидаемых артефактов и посмотреть логи на новые предупреждения.
Ставьте его, если нужно обновить action без изменения поведения workflow. Для простой автоматической замены версий без проверки выполнения он избыточен.
Какие задачи решает
- обновить action с устаревшим runtime
- выбрать совместимую major-версию GitHub Action
- закрепить action на полном commit SHA
- проверить workflow после обновления action
- сохранить прежние триггеры и permissions
Примеры запросов агенту
- Проверь `.github/workflows/ci.yml` и обнови action с deprecated runtime, сохрани поведение workflow.
- Обнови `actions/setup-node` до совместимой стабильной major-версии и используй полный commit SHA.
- Проверь затронутые workflow после обновления и перечисли новые предупреждения в логах.
Как установить github-actions-runtime-upgrade-conventions
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventions2GitHub CLI
gh skill install github/awesome-copilot github-actions-runtime-upgrade-conventions3Вручную: положить файлы
.github/skills/github-actions-runtime-upgrade-conventions/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventions -a claude-code2Вручную: положить файлы
~/.claude/skills/github-actions-runtime-upgrade-conventions/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/github-actions-runtime-upgrade-conventions/
Вручную: положить файлы
.agents/skills/github-actions-runtime-upgrade-conventions/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/github-actions-runtime-upgrade-conventions/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/github-actions-runtime-upgrade-conventionsВручную: положить файлы
.devin/skills/github-actions-runtime-upgrade-conventions/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора554
Весь набор →Похожие
Вопросы о github-actions-runtime-upgrade-conventions
Как установить github-actions-runtime-upgrade-conventions в GitHub Copilot?
Выполните npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventions, либо установите через gh skill install github/awesome-copilot github-actions-runtime-upgrade-conventions.
Что делает github-actions-runtime-upgrade-conventions?
Скилл обновляет GitHub Actions до поддерживаемых runtime, выбирает совместимые версии и проверяет, что workflow сохранил прежнее поведение после изменения.
Зачем использовать commit SHA вместо тега GitHub Action?
Скилл рекомендует полный commit SHA, потому что финальные рекомендации не должны использовать изменяемые теги или ветки вроде @v4 и @main.
Исходный текст
SKILL.md · MIT
--- name: github-actions-runtime-upgrade-conventions description: 'Upgrade GitHub Actions to supported runtimes by selecting safe action versions, preserving workflow behavior, and validating post-upgrade execution.' --- # GitHub Actions Runtime Upgrade Conventions Use this skill when editing GitHub Actions workflows to address deprecation warnings about action runtimes (for example Node.js runtime migrations). ## Use This Skill When - Workflow logs report an action is running on a deprecated runtime. - You are upgrading action versions in `.github/workflows/*.yml` or `.github/workflows/*.yaml`. - You need to keep existing workflow behavior while modernizing action dependencies. ## Upgrade Rules - Prefer upgrading to the latest stable **major** version of each action that is compatible with the workflow. - Prefer immutable pins: resolve the target release to a full commit SHA and use that SHA in `uses:`. - Do not pin to mutable tags or branches (for example `@v4` or `@main`) in final recommendations. - Upgrade one action at a time per commit (or one tightly related group) so failures are easy to isolate. - Keep existing workflow behavior unchanged while upgrading runtime/dependency actions. ## Actions We Track in This Repo Prioritize runtime review for these groups when warnings appear: - Any first-party action under `actions/*` - Especially setup actions under `actions/setup-*` (for example `setup-node`, `setup-python`, `setup-dotnet`) - Any other action explicitly named by the runtime deprecation warning in workflow logs ## Pinning Pattern ```yaml steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.3.1 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.4 ``` When recommending upgrades, identify the latest compatible release first, then use the corresponding commit SHA with an optional version comment. ## Verification Checklist After changing action versions: 1. Ensure all edited workflows still parse and keep the same triggers/permissions unless intentionally changed. 2. Run the affected workflows (or equivalent local build/test commands) and confirm the upgraded steps complete successfully. 3. Confirm release/signing/artifact steps still produce expected outputs where applicable. 4. Check workflow run logs for any new deprecation warnings or runtime migration notes. ## PR Notes Include in the PR summary: - Which actions were upgraded (from -> to). - Whether any action could not move to a new major and why. - Which workflows were re-run to validate the change. ## How This Complements Dependabot Dependabot can automate many updates, but this skill still helps when: - Dependabot is not enabled for workflows in a repository. - Runtime warnings appear before an automated update is available. - A workflow needs behavior-preserving validation after the action bump.
© github · MIT · github/awesome-copilot