Commit 82cb863
fix: switch off syft's Actions catalogers instead of excluding .github (#32)
## Summary
拿上游 github-project-os v0.5.6(`5d22ae6`)對我們 09-25 回報的回應:
- **`Makefile`**:`lint-licenses` 和 `sbom` 不再用 `--exclude
'./.github/**'`,改用 `--select-catalogers
'-github-actions-usage-cataloger,-github-action-workflow-usage-cataloger'`,註解同步改寫。整個排除
`.github/` 會把 `.github/actions/` 底下 local action 的 npm 依賴也丟掉,而那些是會交付的。本
repo 目前沒有 `.github/actions/`,這次是預防將來漏掉。
- **`skills/release-management`、`skills/validation-ladder`**:整檔換成
v0.5.6(原本跟 v0.5.5 byte 相同)。內容包括 `Release-As` 要放在 squash commit 最後一行(多
commit 的 PR 要用 `gh pr merge --squash --body-file`),以及 L4 授權檢查範本的
cataloger 寫法和「用完整 purl 跳過自家套件」。
## Related issue
Closes #31
## Validation
- [x] L0 static — `make lint`
- [x] L1 unit — `make test`
- [x] L2 integration — 用 syft 1.52.0 實跑:`make lint-licenses` rc=0,`make
sbom` rc=0,SBOM 裡 github-action 元件 0 個。另外用 fixture 比對兩種寫法:`--exclude` 掃出
`[]`;`--select-catalogers` 掃出 local action 的 `dep(npm)`,workflow 用到的
action 沒列入
- [ ] L3 e2e / preview — n/a
## Risk / rollback
```text
RISK: none at runtime — both targets are still outside lint/ci-pr
Rollback: revert this squash commit
```
## Checklist
- [x] Conventional Commit PR title (`<type>: <description>`)
- [x] Linked issue using "Closes #N"
- [x] No secrets, no `*.local.md` files committed
- [x] Documentation updated where affected
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 0ca3830 commit 82cb863
3 files changed
Lines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
| |||
0 commit comments