Skip to content

fix: 对齐受信工作流完整 SHA 锁 - #322

Merged
axiomoth merged 3 commits into
mainfrom
fix/source-workflow-sha-lock-20261111
Nov 11, 2026
Merged

axiomoth merged 3 commits into
mainfrom
fix/source-workflow-sha-lock-20261111

Conversation

@axiomoth

@axiomoth axiomoth commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

问题与变更

维护 PR #321 的 required run 42904588446 在启动时报告四个完整 SHA 缺失。候选及测试合并提交的锁已含四项,但受信来源 ffc4e6a 的 maintenance workflow 锁根仍使用 tag。来源锁是目前更强的原因假设,真正后端启动验证须在正常采用并提升来源后进行。

本 PR 用项目指定的官方 gh-actions-lock v0.4.0 和 --no-narrow 重新生成完整来源锁,保留全部 13 个 workflow 字节。16 条 tag/SHA 别名归并为 9 个唯一依赖,版本 ref、commit、owner_id、repo_id 及各 workflow 的解析依赖集合完全不变。CONTRIBUTING 补充指定版本官方安装、生成与验证命令,以及更新 PR 发现锁缺失或不匹配时重新生成并提交的责任;不新增更新器或固定死版本。

验证与审查

官方离线 --verify-local、联网 --verify 均 exit0;保留33条sha-as-ref warning。--no-narrow 续跑保持锁及YAML逐字节不变,普通生成会改回tag。未来 Dependabot 托管更新后的SHA格式尚未实测,须以实际更新PR差异和CI复核。

当前 H 6b570228de143d8866ebb4876674bbc59b8775d2 仅对上一提交补充文档,锁和YAML未变,git diff --check通过。前一提交 Native42906264721成功;当前 Native42955145176 已 completed/success,Linux、Windows、治理扫描、依赖和文档检查全部通过。当前CodeQL、Code Quality、标题通过。旧非必需 PR Validation Gate 的 CONTRACT_RUN_ABSENT 保留。

当前提交的 Copilot42955157138 success,review5853603030为No open issues,2条文档意见已独立判断并回复解决;摘要提醒的真实维护运行仍是采用后验证。Codex code completed/false/false,security completed/null/null,安全发现字段保留未知。

采用边界

三个连接器提交均 unsigned,作者账号axiomoth;按适用来源PR流程记录,正常合并时另核最终M签名及同tree。采用后完成main Native及既有双目标Promotion,并读回准确来源,再验证维护PR的真实required启动。若仍失败,保留证据继续定位,不关闭保护或手工伪造锁。无Action版本、工具版本或业务部署变化。本次贡献由AI编程助手准备。

实际采用结果

已正常合并为 e3417d9e8b77824c854e00edbcebd486adc8cc20,GitHub签名valid,完整tree与最终受审候选一致。主线 Native42956763453 和 Governance Promotion42958306829 均成功。独立读回 main、core required来源、maintenance required来源、protected controller来源全部一致;完整相关规则比较仅两目标SHA变化,模板版本不变。真实维护PR的required启动验证仍由后续维护入口实测完成,本PR采用结果不替代该验收。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T03:49:28.016740Z 6b57022 New commits
🔒 Security Review ✅ Completed 2026-11-11T03:53:25.765042Z 6b57022 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added auto/workflows GitHub workflow paths changed auto/docs Documentation paths changed labels Nov 10, 2026
@axiomoth
axiomoth requested a lite review from Copilot November 11, 2026 03:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

CONTRIBUTING.md contains two unresolved instructions that could leave actions.lock stale or generate it with an unpinned tool version, causing verification and CI failures.

2 open issues
What changed in this PR

本 PR 使用官方 github/gh-actions-lock v0.4.0 重新生成 .github/workflows/actions.lock,把锁从版本 tag 改为完整 SHA 键,并在 CONTRIBUTING.md 中补充锁文件的生成、校验和更新规则。目的是让受信维护工作流能够找到它需要的完整 SHA 依赖。所有 workflow 文件内容保持不变。

Changes:

  • 锁文件从 16 个条目归并为 9 个唯一依赖,键统一为完整 SHA,版本 ref、commit、owner_id 和 repo_id 保持一致。
  • CONTRIBUTING.md 新增 GitHub Actions 锁文件章节,说明使用 --no-narrow 生成、--verify 校验,以及 Dependabot 更新后的复核责任。
File Description
CONTRIBUTING.md 新增锁文件生成与校验说明,但示例未固定工具版本,且对 Dependabot 的描述需要修正。
.github/​workflows/​actions.lock 把各 workflow 的依赖从版本 tag 改为完整 SHA 键,并归并重复条目。

Review effort: Lite

Comment thread CONTRIBUTING.md Resolved
Comment thread CONTRIBUTING.md Resolved
Copilot AI lite review requested due to automatic review settings November 11, 2026 03:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

关键 required workflow 的完整 SHA 来源锁修复尚未通过真实托管后端运行验证,目前仅有静态 YAML 与本地 lock 一致性证据,无法确认平台已接受并恢复 required run。

No open issues 🎉

2 resolved since last review

Review effort: Lite

@axiomoth
axiomoth merged commit e3417d9 into main Nov 11, 2026
17 of 18 checks passed
@axiomoth
axiomoth deleted the fix/source-workflow-sha-lock-20261111 branch November 11, 2026 04:03
axiomoth added a commit that referenced this pull request Nov 11, 2026
## 摘要

将旧运行时维护分支接入中央受信维护校验,支持后续普通维护 PR。变更类型:构建与依赖、测试、文档。

## 变更原因

PR307 的一次性旧校验不能承接普通维护;本 PR 为维护树补齐可信扫描兼容性及可重现工具锁。

## 主要改动

- 后续维护 PR 使用中央 required workflow;旧 validate 仅为 PR307 保留入口。仓库 ID/profile
经环境变量传入 shell。
- 移除三个旧 workflow_run 自动入口,保留其余触发器和 job。
- 为 11 个本地工作流及中央 required workflow 生成官方 Actions 锁。
- 将 npm 11.21.2 纳入 package-lock 工具依赖,内置 brace-expansion 5.0.12 修复
GHSA-6j4f-fj2g-mc7p、GHSA-qhr7-859c-m2p7;Node 保持 24.22.0。
- 历史合同测试读取固定 21be466 提交的真实文件;当前维护入口使用独立固定 P 的扫描与来源核对。

## 关联事项

相关 #307、#317、#319、#322、#323。本 PR 完成维护树首次接入;旧服务部署、消费者切换及资源退役按独立交接窗口执行。

## 验证结果

- 当前
H:85734db63ae4f37429a598975a8514eb976c465f;tree:542370c781f90199e8cfa25bcb104adcefd368ee。
- 前一 H7c69 的真实 required
[42980492484](https://github.com/splrad/steward/actions/runs/42980492484)
全部通过:来源身份、构建测试、dependency review、最终检查。
- 实际 WORKFLOW_SHA 为
0e6ad89;source/final 记录事件 merge 与
liveMerge 均为 de4170b。
- 托管测试 84 文件、1964 项通过、10 项跳过;typecheck、verify:config、verify:dist
通过。平台跳过项保留,不记为通过。
- 11 个工作流经受信 jactionlint/zizmor 扫描通过,exceptions=[];官方 Actions
锁验证通过。工具原始警告及外部根信息项保留。
- Node 24.22.0 / npm 11.21.2 本地 npm ci 与维护入口合同测试通过。
- 当前准确 H 的最终 AI 审查正在完成。此前 H8b 的五条裁定保留历史。H7c69 的两条 Copilot
意见已分别按历史事件不可达裁定、同步维护文档版本处理并解决线程;其 Codex code 无发现,security null 记为
UNKNOWN。H8e的摘要high已按[公开证据裁定](https://github.com/splrad/steward/pull/321#issuecomment-6790356691)修正README与workflow-validation文档范围,旧镜像不恢复;当前最终文档H正在重新完成审查/CI。

## 影响分析

runtime 源码、runner dist、PR307 evaluator 和原 workflow-contract
历史字节保持一致。本次影响维护验证、工具依赖与自动工作流入口,无生产权限增加或业务数据迁移。

## 发布与迁移

中央来源固定 0e6ad89。准确 H
的必要审查结束后,仅将维护规则26795348的 validate/App15368 替换为 SPLRAD Maintenance
Validation/App15368,保留其余保护和 approval26795350,再按期望 H 正常 squash 合并。服务窗口
NOT_OPEN。

## 回退方式

采用前可关闭本 PR;采用后通过正常受保护 PR 回退适配,并协调有效检查来源和 context。

## AI 使用声明

本次贡献由 AI 编程助手代理生成;人类已批准任务范围,代码审查状态以本 PR 实际记录为准。

## 补充材料

维护与恢复边界见 CONTRIBUTING.md;完整 CI 与审查证据保留在本 PR,未知结果不记为通过。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto/docs Documentation paths changed auto/workflows GitHub workflow paths changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants