Dispatch fails with "Bad credentials" for all projects

未关闭 适合新手
#3,119 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
60/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, php
领域
ci-cd, tooling

调研方向

从 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-project repository
    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. SonataDoctrineMongoDBAdminBundle 4.x).

Suggestions:

  • Renew the token secret(s).
  • Make dispatch:files return 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sonata-project/dev-kit 的其他 Issue

查看 sonata-project/dev-kit 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。