Repository navigation
ci: accept opaque GitHub job tokens in the SAI publisher - #14
Merged
Merged
Conversation
Stardust0831
requested a deployment
to
sai-libddla
November 18, 2026 16:38 — with
GitHub Actions
Waiting
userchba
added a commit
that referenced
this pull request
Nov 21, 2026
ci: accept opaque GitHub job tokens in the SAI publisher
This branch is waiting to be deployed
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.
A valid 377-byte
GITHUB_TOKENcontaining dots is rejected by the SAI publisher's 256-byte, alphanumeric-only check. The Actions job then waits for results while the publisher never submits compute.Treat the token as opaque printable ASCII, with an 8 KiB input limit. Preserve the regular-file/no-symlink checks and reject whitespace, control characters, non-ASCII input and oversized files. GitHub still authenticates the token, and the publisher still verifies the run, source SHA and required approvals.
Validation: all five publisher tests pass, including a regression for a 377-byte dotted token, legacy tokens, the size boundary and invalid input.
git diff --checkpasses. Live run 44347942833 resumed with this publisher fix and completed source56a535d: 186/188 full-suite tests passed, with only the two known Cholesky error-code failures; both six-rank tests passed. Artifact upload and token cleanup succeeded, and the failed tests correctly propagated a failed Actions result.实际有效的
GITHUB_TOKEN有 377 字节且包含点号,被站点服务原先“最多 256 字节、仅字母数字及下划线”的检查拒绝,导致 Actions 一直等待结果而未提交计算。改为将 token 作为不解析内部格式的可打印 ASCII 字符串处理,输入上限为 8 KiB。保留普通文件及禁止符号链接的检查,继续拒绝空白、控制字符、非 ASCII 和超大输入。有效性由 GitHub 验证,运行身份、源码 SHA 和审批检查继续保留。
验证:五项站点服务测试全部通过,覆盖 377 字节点号 token、旧格式、大小边界和非法输入;
git diff --check通过。真实运行 44347942833 使用修复后的站点服务恢复执行,对源码56a535d完成全量 186/188 通过(仅两项已知 Cholesky 错误码失败)、六进程专项 2/2 通过。产物上传和 token 清理成功,测试失败也正确传递为 Actions 失败状态。