Docs: refresh GitHub Actions examples to the current image-tag pin and document summary outputs

Đang mở Phù hợp với người mới
#415 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

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

Hướng nghiên cứu

Bắt đầu với giá trị mặc định của image-tag và các định nghĩa output trong action.yml, sau đó so sánh chúng với các giá trị được ghim trong examples/github-actions/README.md và bất kỳ mẫu workflow liên quan nào. Cập nhật các pin theo lịch để khớp, mô tả drift-score, risk-level, score-delta và summary-file (rỗng khi image quá cũ), và thêm một đoạn mã đọc chúng trong bước if: always(). Hoàn thành khi không còn pin cũ nào và đoạn mã không cần secret hay truy cập mạng.

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

Mô tả

documentation good first issue

Context

action.yml pins the default scanner image-tag to 2026.1007.1 and exposes CI-friendly outputs from vg scan --summary-out: drift-score, risk-level, score-delta, and summary-file. Older images skip --summary-out with a notice and leave those outputs empty.

examples/github-actions/README.md still documents the pin as 2026.1005.1 in several places (install step, pins table, composite Action example). Newcomers copying that file gate on a stale scanner and never learn how to read the summary outputs in a later job step.

What to do

  • Update every calendar pin in examples/github-actions/ (and any sibling workflow comments that hard-code the old default) so they match the current image-tag default in action.yml. Prefer one shared wording such as "the image-tag default in action.yml" plus the current value.
  • Document the Action outputs: what each field means, that an unmeasured score is empty/null (never 0), and that an older image-tag leaves them empty with a notice.
  • Add a short workflow snippet that writes the summary (default vibgrate-summary.json or the summary: input) and prints drift-score / risk-level / score-delta in a follow-up step with if: always().
  • Keep examples local-first: no DSN required, no secrets in the sample.

Acceptance

  • examples/github-actions/README.md (and checked-in workflow samples that hard-code a calendar pin) match the current action.yml image-tag default
  • Outputs drift-score, risk-level, score-delta, and summary-file are described, including the older-image empty case
  • A copy-paste snippet shows reading those outputs after the scan step
  • No network calls, tokens, or private docs referenced
Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

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

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 vibgrate/cli

Tất cả issue của vibgrate/cli

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.