Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Feature: warn when workflow YAML validates but would fail at runtime (schema vs runner gap)

Đang mở
#611 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github-actions, typescript
Lĩnh vực
ci-cd, devtools

Hướng nghiên cứu

Bắt đầu bằng cách lần theo điểm vào hiện có của việc xác thực schema YAML của workflow và phiên đã xác thực vốn được sử dụng cho cây API. Xem xét cách các tệp action.yml và các trigger của workflow được phân giải, sau đó xác định bốn kiểm tra runtime opt-in và bộ nhớ đệm workflow-file-hash phù hợp bên cạnh việc xác thực như thế nào. Hoàn thành có nghĩa là các chẩn đoán Information có thể bỏ qua được chạy khi mở và lưu mà không chặn thao tác lưu.

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

Mô tả

Summary

Extension validates workflow YAML against the schema, but many mistakes only surface after git push triggers a runner:

  • runs-on: referencing a self-hosted label that has no online runner
  • uses: owner/repo@ref where ref no longer resolves (deleted tag/branch, moved SHA)
  • secrets: inherit on a reusable workflow whose caller does not actually inherit
  • permissions: narrower than what a step needs (e.g. contents: read + a step that pushes)
  • if: expression referencing a context that is empty for the trigger (e.g. github.event.pull_request.* on push)

Each case validates green locally, then burns a runner minute and a red X on the PR.

Proposal

A "runtime-plausibility" pass, opt-in (github-actions.runtimeChecks.enabled), that runs alongside schema validation and surfaces Information-level diagnostics for:

  1. Unresolvable uses: refs (HEAD probe via the authenticated session already used for the API tree)
  2. runs-on: labels not present in the repo's runner list
  3. permissions: narrower than the union of permissions declared by any resolvable action's action.yml
  4. Context references that are empty for the declared on: triggers

None block save; all are dismissible. Runs on open + on save, cached by workflow-file hash.

Why not act / nektos

act runs the whole workflow in Docker; this is a static, seconds-scale lint. Complementary, not overlapping.

Related
  • #593 (commit-pinned actions reported unresolved) - same "static analysis of uses:" surface
  • #609 (false-positive missing-required-inputs) - related schema-vs-runtime gap in the other direction
Ngôn ngữ chính
TypeScript
Star
661
Fork
214
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 github/vscode-github-actions

Tất cả issue của github/vscode-github-actions

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.