Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)40k · #7226

github-actions-runtime-upgrade-conventions

Fungsinya

Tool ini membantu memperbarui bagian kode Anda (disebut 'actions') yang berjalan di lingkungan (runtime) yang sudah usang. Tool ini menyarankan versi yang lebih baru dan lebih aman, dengan memastikan semuanya tetap berfungsi seperti sebelumnya.

Kapan dipakai

  • ✓Saat GitHub memberi peringatan bahwa suatu runtime sudah usang (deprecated).
  • ✓Saat memperbarui 'actions' dalam file workflow Anda.
  • ✓Saat Anda ingin memperbarui 'actions' tanpa mengubah perilaku yang ada sekarang.

Link skill

https://github.com/github/awesome-copilot/blob/main/skills/github-actions-runtime-upgrade-conventions/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/github-actions-runtime-upgrade-conventions/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Perbarui GitHub actions ke runtime yang didukung, dengan tetap mempertahankan perilaku workflow.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini menganalisis 'actions' mana yang sudah usang lalu menyarankan versi stabil terbaru. Untuk alasan keamanan dan kepastian, tool ini lebih memilih pengenal tetap (SHA) dibandingkan tag yang bisa berubah.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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

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.
Pertanyaan umum

Apa itu 'actions' di GitHub?

'Actions' adalah program kecil yang mengotomatiskan tugas di GitHub, seperti membangun kode, menguji, atau mempublikasikan. Actions berjalan di lingkungan tertentu (runtime).

Mengapa saya perlu memperbarui runtime?

Lingkungan yang sudah usang bisa menjadi tidak aman atau berhenti berfungsi. Dengan memperbaruinya, otomatisasi Anda tetap berjalan dengan andal dan aman.

Apa bedanya dengan Dependabot?

Dependabot bisa mengotomatiskan pembaruan, tetapi tool ini berguna ketika Dependabot belum diatur, ketika peringatan deprecated muncul sebelum pembaruan otomatis dilakukan, atau ketika Anda perlu memvalidasi perubahan dengan hati-hati.

Detail

Deskripsi asli dari pembuat

Upgrade GitHub Actions to supported runtimes by selecting safe action versions, preserving workflow behavior, and validating post-upgrade execution.

repo: github/awesome-copilot

Popularitas

Bintang GitHub
40k
Peringkat
#7226
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa