Dispatch fails with "Bad credentials" for all projects

オープン 初心者向け
#3,119 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sonata-project/dev-kit のほかの issue

sonata-project/dev-kit の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。