github-actions-runtime-upgrade-conventions — GitHub Copilot skill
This skill upgrades GitHub Actions to supported runtimes while preserving workflow behavior. Use it when logs warn about deprecated Node.js or another action runtime.
npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventionsWhat github-actions-runtime-upgrade-conventions does
The skill guides edits to workflows in .github/workflows/*.yml and .github/workflows/*.yaml when an action runs on a deprecated runtime. It selects a compatible stable major release, keeps existing triggers and permissions, and recommends changing one action per commit so failures remain easy to isolate.
Final recommendations use full commit SHAs instead of mutable tags or branches such as @v4 or @main. After the upgrade, check that the workflow still parses, rerun affected workflows, verify expected artifacts where relevant, and inspect logs for new deprecation warnings.
Install it when an action runtime warning needs a behavior-preserving workflow change. It is unnecessary when you only want an automatic version bump without execution checks.
What it helps with
- upgrade an action using a deprecated runtime
- choose a compatible stable major release
- pin an action to a full commit SHA
- validate workflows after an action bump
- preserve existing triggers and permissions
Example prompts for the agent
- Inspect `.github/workflows/ci.yml` and upgrade the action with the deprecated runtime without changing workflow behavior.
- Upgrade `actions/setup-node` to a compatible stable major release and use its full commit SHA.
- Rerun the affected workflows and list any new deprecation warnings in the logs.
How to install github-actions-runtime-upgrade-conventions
1Skills 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-conventions3Manually: put the files in place
.github/skills/github-actions-runtime-upgrade-conventions/SKILL.md1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventions -a claude-code2Manually: put the files in place
~/.claude/skills/github-actions-runtime-upgrade-conventions/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/github-actions-runtime-upgrade-conventions/
Manually: put the files in place
.agents/skills/github-actions-runtime-upgrade-conventions/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/github-actions-runtime-upgrade-conventions/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
Platform CLI
gemini skills install https://github.com/github/awesome-copilot --path skills/github-actions-runtime-upgrade-conventionsManually: put the files in place
.devin/skills/github-actions-runtime-upgrade-conventions/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set554
The whole set →Similar
Questions about github-actions-runtime-upgrade-conventions
How do I install github-actions-runtime-upgrade-conventions in GitHub Copilot?
Run npx skills add github/awesome-copilot --skill github-actions-runtime-upgrade-conventions, or use gh skill install github/awesome-copilot github-actions-runtime-upgrade-conventions.
What does github-actions-runtime-upgrade-conventions do?
It upgrades GitHub Actions to supported runtimes, selects compatible releases, and checks that workflow behavior remains intact after the change.
Why does the skill recommend a commit SHA instead of an action tag?
It recommends a full commit SHA because final guidance should avoid mutable tags or branches such as @v4 and @main.
Source text
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