Skip to content

ci: accept opaque GitHub job tokens in the SAI publisher - #14

Merged
userchba merged 1 commit into
userchba:developfrom
Stardust0831:fix/sai-job-token-format
Nov 18, 2026
Merged

userchba merged 1 commit into
userchba:developfrom
Stardust0831:fix/sai-job-token-format

Conversation

@Stardust0831

@Stardust0831 Stardust0831 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

A valid 377-byte GITHUB_TOKEN containing 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 --check passes. Live run 44347942833 resumed with this publisher fix and completed source 56a535d: 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 失败状态。

@userchba
userchba merged commit 5aeb083 into userchba:develop Nov 18, 2026
3 of 4 checks passed
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

1 waiting deployment
sai-libddla — 1c5fc8ce Waiting Nov 18, 2026 by Stardust0831 via SAI V100, full CUDA suite and six-rank matrix tests #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants