Upgrade GitHub Actions in deploy.yml to current major versions

Đang mở
#22 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, typescript, vite
Lĩnh vực
ci-cd, release

Hướng nghiên cứu

Read .github/workflows/deploy.yml and the release notes for each listed action, especially the dotfile handling change in upload-pages-artifact v4. Update all five actions to their current major versions, then run npm run typecheck and npm run build; done means a push to main completes the build and deploy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

dependencies severity: medium

Summary

The deploy workflow uses action versions that run on the node20 action runtime, which is past end of life. If hosted runners drop node20, pushes to main stop deploying.

Where

  • .github/workflows/deploy.yml:21, :22, :28, :29, :41

Details

Action Pinned Latest release seen
actions/checkout v4 v7
actions/setup-node v4 v7
actions/configure-pages v5 v6
actions/upload-pages-artifact v3 v5
actions/deploy-pages v4 v5

The runner removal date for node20 was not checked.

Suggested fix

Bump all five in one change after reading each major's release notes (upload-pages-artifact v4 changed dotfile handling).

Acceptance criteria

  • All five actions are on their current major
  • A push to main builds and deploys

Getting started

  • Relevant files: .github/workflows/deploy.yml
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: medium. Effort: S. audit-key: dependencies|.github/workflows/deploy.yml|actions-versions

Ngôn ngữ chính
TypeScript
Star
3
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/GH-Arcade

Tất cả issue của TMHSDigital/GH-Arcade

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.