Repository navigation
修复 Dependabot 无部署密钥时的 COS 预览失败 - #122
Merged
Merged
Conversation
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.
使用者影响
修复 Dependabot PR 在全部 Calcit 检查、原业务测试和构建通过后,仍因缺少 COS bucket/密钥而失败的问题。Dependabot 与 fork PR 继续完整检查/构建,但不上传预览;普通同仓库 PR 和 main 的原上传/部署行为保持不变。
不新增 Dependabot secrets、不扩大 GITHUB_TOKEN、不使用 pull_request_target,也不通过人工重跑获取更高权限。
原因及改动
Timegrass #121 的运行 39480761448 由 dependabot[bot] 发起,唯一失败为 COS Action
Missing required input: bucket。原条件仅检查同仓库,误把 Dependabot PR 当作可读取普通 Actions secrets 的预览运行。仅在原 COS 步骤增加 PR 作者排除条件并更新 README;按 PR 作者判断,也覆盖由维护者重新打开/同步此 PR 的情况。COS Action 1.2.0 内置 public-base-url 校验保留,所有前后端门禁、版本、生产前缀及 web/server rsync 路径不变。
验证与边界
依据:GitHub 官方 Dependabot Actions 限制。这是项目 workflow 条件问题,不是 Calcit 或 COS Action 验证缺陷,不重复向其上游报错。