Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)40k · #7226

github-actions-runtime-upgrade-conventions

Skill này làm gì

Công cụ này giúp cập nhật các phần code (gọi là “actions”) đang chạy trên môi trường đã lỗi thời. Nó gợi ý các phiên bản mới hơn, an toàn hơn và bảo đảm mọi thứ vẫn hoạt động như trước.

Khi nào nên dùng

  • ✓Khi GitHub cảnh báo một môi trường chạy đã bị ngừng hỗ trợ.
  • ✓Khi cập nhật các “actions” trong file workflow.
  • ✓Khi bạn muốn hiện đại hóa các “actions” mà không thay đổi hành vi hiện tại.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/github-actions-runtime-upgrade-conventions/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Nâng cấp các GitHub action lên môi trường chạy được hỗ trợ, đồng thời giữ nguyên hành vi của workflow.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ phân tích những “actions” nào đã lỗi thời và gợi ý các phiên bản ổn định mới nhất. Nó ưu tiên dùng định danh cố định (SHA) thay vì thẻ có thể thay đổi, để tăng bảo mật và khả năng dự đoán.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

GitHub “actions” là gì?

Đó là các chương trình nhỏ tự động hóa tác vụ trên GitHub, như build code, kiểm thử hoặc xuất bản. Chúng chạy trong các môi trường cụ thể (runtime).

Tại sao tôi cần cập nhật runtime?

Môi trường lỗi thời có thể trở nên thiếu an toàn hoặc ngừng hoạt động. Cập nhật bảo đảm các tự động hóa của bạn tiếp tục chạy đáng tin cậy và an toàn.

Điều này khác gì Dependabot?

Dependabot có thể tự động hóa việc cập nhật, nhưng công cụ này hữu ích khi Dependabot chưa được thiết lập, khi cảnh báo ngừng hỗ trợ xuất hiện trước khi có cập nhật tự động, hoặc khi bạn cần kiểm tra kỹ các thay đổi.

Chi tiết

Mô tả gốc của tác giả

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

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7226
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự