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

未关闭 适合新手
#415 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions

调研方向

从 image-tag 的默认值以及 action.yml 中的输出定义入手,然后将它们与 examples/github-actions/README.md 中的固定值以及同级的工作流示例进行比较。更新日历固定值使其保持一致,说明 drift-score、risk-level、score-delta 和 summary-file(镜像过旧时为空),并添加一个在 if: always() 步骤中读取它们的代码片段。完成标准是不再有旧的固定值,并且该代码片段不需要密钥或网络访问。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
4
派生
3
平均合并
1 天 22 小时
30 天内合并 PR
76

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vibgrate/cli 的其他 Issue

查看 vibgrate/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。