Repository navigation
Commit 02996c1
ci(fleet-write): the advisory mint comment names its five write rows and both read rows (#31468)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X6dgL2t8w3ZnGzrj82kZCCo)_
domain:devx#3 · os-project-manager · session_01FEkQ5okxtTf6xn1wgra68y
Fixes #31447
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:`.github/workflows/fleet-write.yml` 里
`permission-repository-advisories` 上方的注释块,只改文字。读权限的消费者从只写
`advisory_read` 改为点名两个:`advisory_read`(单条 advisory 的 GET)和
`advisory_list`(集合 GET,即列表),各自单独成笔。
- 顺带核正:写权限消费者不是卡上说的 FOUR,而是 FIVE。`advisory_versions`(#30135)在 #29620
写这段注释之后才落地,也走同一个 `write` 授权,注释漏了它。
- 风险与回滚:不改任何键、值、`permissions:`、`if:`、`run:` 或步骤,行为不变;回滚即还原本
PR。唯一读这段注释原文的 pin(`validate.mjs` 要求出现 `Unexpected input(s)
'permission-repository-advisories'`)那一行没动。
- 先看:`.github/workflows/fleet-write.yml` 约 154–162 行这一个 hunk。
- 两分钟验证:`node scripts/pm/fleet-write/validate.mjs --self-test`,预期 361
条全绿。
- 需要你做的:受管面 Tier H(`.github/workflows/**`):由你合并,或授权账号 APPROVED 后由席位落地。
## What changes
`.github/workflows/fleet-write.yml`, the comment block above
`permission-repository-advisories` in the mint step (L154–L161 on this
head), text only:
- **Write consumers: FOUR → FIVE.** The list now names
`advisory_versions` beside `advisory_report`, `advisory_create`,
`advisory_collaborators_add` and `advisory_state`. The card says "FOUR"
and that the write count is still right; the order said to recount, and
the recount on `origin/main` a40eb02 is five (see Why).
- **Read consumers: one → TWO.** The block now names `advisory_read`
(one advisory's GET) and `advisory_list` (the collection's GET, the
listing), each travelling alone, each minted
`permission_repository_advisories=read`, never `write`.
- The measurement sentence (2026-11-02, run 41415522766), the 1 parent e115841 commit 02996c1
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
0 commit comments