Dispatch fails with "Bad credentials" for all projects
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 60/100
调研方向
从 dev-kit 源码中实现 dispatch:files 的 Symfony 控制台命令开始,找到在其 catch 块内打印 [ERROR] Failed with message: 行的按项目循环。该处理器目前会吞掉异常;让它记录失败,并让命令在循环结束后返回非零退出码,然后运行该命令现有的测试以确认失败路径。注意报告的另一半——续期 OAUTH_TOKEN_GITHUB / DEV_KIT_TOKEN——是 maintainer/secret 变更,不是 contributor 能做的事,因此将你的工作范围限定在退出码修复上。完成意味着一个失败的项目会让 dispatch:files 步骤变红。
由索引模型根据 Issue 内容生成。
描述
The scheduled "Dispatch files and branches protection" workflow is green, but the
dispatch:files step fails for every project with:
doctrine-mongodb-admin-bundle
-----------------------------
[ERROR] Failed with message: Bad credentials
The run and the step are green, the error is only visible inside the
"Dispatch files" step log. The same error appears for all 16 projects in the
latest run:
https://github.com/sonata-project/dev-kit/actions/runs/43730643908/job/132862082527#step:7:50
It looks like the GitHub token used by the workflow (OAUTH_TOKEN_GITHUB /
DEV_KIT_TOKEN) has expired or been revoked. The error is caught by the
command, so the job still succeeds and the problem goes unnoticed.
Impact:
- No "DevKit updates" PR has been opened in any
sonata-projectrepository
since 2026-05-03. - Template fixes are not being propagated, e.g. #3101 (db46efb, removal of
PHPUnitSetList::PHPUNIT_100). As a consequence, the Rector job fails on the
nightly QA of the bundles, since that constant no longer exists in Rector 2.x
(e.g. SonataDoctrineMongoDBAdminBundle4.x).
Suggestions:
- Renew the token secret(s).
- Make
dispatch:filesreturn a non-zero exit code when a project fails, so
the workflow turns red next time.
- 主要语言
- PHP
- 星标
- 42
- 派生
- 40
- 平均合并
- 28 分钟
- 30 天内合并 PR
- 16
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sonata-project/dev-kit 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
sonata-project/dev-kit#1614 · 5 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
sonata-project/dev-kit#1508 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
sonata-project/dev-kit#109 ·
维护者通常 1 天内回复
查看 sonata-project/dev-kit 的全部 Issue
相似的 Issue
-
[Sync EN] Pdo\Pgsql: document session state reset on persistent connections (PHP 8.6) (#6084)可能已有人在做 @lacatoire 今天认领。 未关闭sync-en
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Potential Bug To Triage
难度 2/5 1-3 小时 新手友好度 63/100
matomo-org/matomo#25740 ·
维护者通常 1 天内回复
-
[Type] Bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
woocommerce/woocommerce-gateway-stripe#6201 ·
维护者通常 2 天内回复
-
bug status: unverified
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复