Skillpedia
النشر والسحابة (DevOps)40k · #7226

github-actions-runtime-upgrade-conventions

ما الذي تفعله

تساعد هذه المهارة على تحديث أجزاء من الكود (تسمى «actions») تعمل على بيئات تشغيل قديمة. تقترح إصدارات أحدث وأكثر أمانًا، مع ضمان أن كل شيء يستمر في العمل كما كان.

متى تستخدمها

  • ✓عندما يحذّر GitHub من أن بيئة التشغيل أصبحت قديمة.
  • ✓عند تحديث «actions» في ملفات سير العمل.
  • ✓عندما تريد تحديث «actions» دون تغيير السلوك الحالي.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/github/awesome-copilot/blob/main/skills/github-actions-runtime-upgrade-conventions/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“حدّث إجراءات GitHub إلى بيئات تشغيل مدعومة، مع الحفاظ على سلوك سير العمل.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تحلل المهارة الإجراءات القديمة، وتقترح أحدث الإصدارات المستقرة. وتعطي الأولوية لاستخدام معرّفات ثابتة (SHA) بدلًا من الوسوم المتغيرة، لتحقيق الأمان والتوقع.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من 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.
الأسئلة الشائعة

ما هي «إجراءات» GitHub؟

هي برامج صغيرة تؤتمت المهام على GitHub، مثل بناء الكود أو اختباره أو نشره. وتعمل في بيئات تشغيل محددة.

لماذا أحتاج إلى تحديث بيئات التشغيل؟

قد تصبح البيئات القديمة غير آمنة أو تتوقف عن العمل. والتحديث يضمن أن تستمر أتمتتك في العمل بشكل موثوق وآمن.

ما الفرق بين هذه المهارة وDependabot؟

يمكن لـ Dependabot أن يؤتمت التحديثات، لكن هذه المهارة مفيدة عندما لا يكون Dependabot مُعدًّا، أو عندما تظهر تحذيرات الإيقاف قبل التحديث الآلي، أو عندما تحتاج إلى التحقق بعناية من التغييرات.

التفاصيل

الوصف الأصلي من المؤلف

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

repo: github/awesome-copilot

الشعبية

نجوم GitHub
40k
الترتيب
#7226
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة