Repository navigation
ci(upstream): 巡检每轮校验 ZUNO_UPSTREAM_SYNC_TOKEN - #284
Merged
Merged
Conversation
ZUNO_UPSTREAM_SYNC_TOKEN 已配置(2026-09-24),但它只在有新 release 时才会被真正使用, 中间可能相隔数周;token 被吊销、过期或权限不足只会在那时才暴露,并让免人工链路静默退回 人工。现在巡检在每一轮(包括基线已最新、无事可做的那些)都做一次只读校验:用该 token `git push --dry-run` 到 upstream-sync/token-check-<run id>(走 GitHub 的写授权判定但不创建 ref),再用 gh 读一次 PR 列表与 `gh api user`,把 token 身份写进 step summary。没有 secret 时跳过(免人工模式本来就关)。步骤放在候选准备之前,此时尚未执行任何上游代码。 边界脚本:自动化 token 允许出现在三步(校验、推送、PR),并钉住 dry-run 命令;文档同步。 本地验证:check_zuno_update_boundaries.py OK、actionlint OK。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
secret 已于 2026-09-24 配置。巡检每轮用该 token 做 push --dry-run + PR 读取的健康检查,失效时定时运行直接失败,而不是在下一个上游 release 时才静默退回人工合并。详见提交说明。