Commit 622a72a
chore(ci): add Diet PR metrics workflow (#2469)
* ci: add Diet PR metrics workflow
Automatically reports go.sum lines, direct dependency count, and
binary size before/after on PRs that touch go.mod or go.sum.
Results appear in GitHub Actions Step Summary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: fix heredoc indentation and dep counting per Copilot review
- Remove leading spaces from heredoc content so Step Summary renders
as a proper markdown table instead of a code block
- Count direct deps correctly by subtracting indirect from total
(grep '// indirect' vs grep all tab-indented lines)
- Add || echo 0 to grep -c to prevent exit code 1 on zero matches
- Add indirect deps row to the metrics table
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: add scanner-only binary size to diet metrics
Build with -tags=scanner (cmd/scanner) in addition to the full build
(cmd/vuls) to show the size impact on both build targets.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci: pin GitHub Actions to commit SHAs
Pin actions/checkout and actions/setup-go to full commit SHAs
to prevent supply chain attacks via tag mutation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3fbd296 commit 622a72a
1 file changed
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments