-
Notifications
You must be signed in to change notification settings - Fork 0
fix(governance): 晨间直推批次豁免登记(ADR-0089) #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fadbcc6
f17faaa
5691c2e
7f39095
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,7 +118,8 @@ while :; do | |
| fi | ||
| N=$(jq 'length' <<<"$CHUNK") | ||
| [[ "$N" -eq 0 ]] && break | ||
| jq -r '.[].name' <<<"$CHUNK" >>"$REPOS_TMP" | ||
| # archived(retired,ADR-0085)仓只读——写操作恒 403,跳过而非计 FAIL | ||
| jq -r '.[] | select(.archived == false) | .name' <<<"$CHUNK" >>"$REPOS_TMP" | ||
|
Comment on lines
+121
to
+122
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Apply/check 仓集合不一致 apply.sh 现在会从 REPOS 清单中剔除 archived=true 的仓,但 drift-check.sh 仍对所有 org 仓库做基线/标签对账;一旦 archived 仓出现漂移(尤其是新增治理标签后必然缺失),drift-check 会持续报漂移并建议运行 apply 修复,但 apply 永远不会再处理这些仓。结果是治理修复闭环被打断,产生长期不可消除的漂移告警。 Agent Prompt
|
||
| [[ "$N" -lt 100 ]] && break | ||
| PAGE=$((PAGE+1)) | ||
| done | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -191,14 +191,24 @@ | |
| "7b1a65234b1697bde11cea2ebdacd8ee0efc44c4" | ||
| ], | ||
| "archive": [ | ||
| "a32f0fcea2bc7b422ad8ad1463a8ad4a92cbeb60" | ||
| "a32f0fcea2bc7b422ad8ad1463a8ad4a92cbeb60", | ||
| "1d24dea9a1515714749be6e3964efb0a83ceceb1" | ||
| ], | ||
| "QW_Arena1": [ | ||
|
Comment on lines
+194
to
197
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Missing card: metadata line The PR description/body does not include the required single Card: metadata line in the format <owner>/<repo>#<n>, which can break downstream automation that parses PR metadata. Agent Prompt
|
||
| "d5ea693874917cbc3fbc45401c9c9a937dc71b9f", | ||
| "bdb8493ab5f2e80ad56d9c5a4327d253db57c191" | ||
| "bdb8493ab5f2e80ad56d9c5a4327d253db57c191", | ||
| "eb5da0dc9f42a88129648a04b0783bdb6bb8c40b", | ||
| "ed67646d796f9e9d2ec48bdf8073a20d40ce0399", | ||
| "63397801a130db173341ee1ff680c02100b8e0ea" | ||
| ], | ||
| "cnb-bridge": [ | ||
| "6a43a24ba859a64ca9770c18fb1254050917984b" | ||
| ], | ||
| "CI-Workflows": [ | ||
| "766d2c89a27e05c6afefd1963c6020be361edc23", | ||
| "5f2684f1e13d33c5f8e260440794324286603bdf", | ||
| "f59ba5f5eb238349e225393703ba084b0060287b", | ||
|
Comment on lines
+207
to
+210
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3. 直推豁免缺少审计注记 expected-state.json 的 direct_push_exemptions 新增了 CI-Workflows 的 4 个豁免 SHA,但该段 comment 仍未说明 CI-Workflows 的事件定性/ADR 背书来源,降低了豁免登记的可审计性并增加后续误用/误删风险。 Agent Prompt
|
||
| "8f47bcbb05208e5d376d460c3b6e35913883ba09" | ||
| ] | ||
| }, | ||
| "org_required_workflows": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: Cloudbird-Software/.github
Length of output: 1171
🏁 Script executed:
Repository: Cloudbird-Software/.github
Length of output: 5240
为缺失的
archived字段启用 fail-closed 校验。仓库清单循环仅校验响应是数组。
select(.archived == false)会静默过滤缺失或null的archived字段,导致仓库跳过基线更新。除非.archived是布尔值,否则应使脚本以非零状态退出;仅对true的仓库跳过处理。🤖 Prompt for AI Agents
Source: Coding guidelines