ci-doctor: compiled workflow has no `actions` toolset, so it can't read failed job logs

Offen Anfängerfreundlich
#420 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Anfängerfreundlichkeit
88/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, yaml

Rechercherichtung

Beginne mit workflows/ci-doctor.md und prüfe, wie die GitHub-Toolsets konfiguriert sind; das Issue nennt das aktuelle Toolset der Lock-Datei und eine vorgeschlagene YAML-Änderung. Bestätige, dass der kompilierte Workflow das actions-Toolset enthält und der Agent fehlgeschlagene Job-Logs abrufen kann. Erledigt, wenn der kompilierte Workflow diese Tools bereitstellt und dabei die Standard-Toolsets beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

workflows/ci-doctor.md asks the agent to "inspect the workflow run and list its jobs" and "retrieve logs for failed jobs", but the workflow doesn't enable the GitHub actions toolset, so it has no tool that can do either.

Repro

  • Compile the current workflows/ci-doctor.md (578e0e0) with gh-aw v1.2.2.
  • The lock file sets GITHUB_TOOLSETS: "context,repos,issues,pull_requests", which is the default set with no actions.
  • permissions: actions: read is set, but that grants the job token permission; it doesn't add the MCP tools.
  • gh inside the sandbox isn't authenticated, and the workflow has no pre-step that downloads the logs.

What we saw
In an evaluation replaying 15 real CI failures on a private repo (same model and config for every run, apart from this change):

Stock ci-doctor With toolsets: [default, actions]
Runs that ended with no diagnosis 4 of 15 0 of 15
Correct root cause 8 of 15 11 of 15

Without the toolset, the agent reported missing tools in missing_tools ("no tool can list GitHub Actions workflow jobs or fetch job logs") and either stopped or worked from whatever it could find in the checkout. With the toolset, every run called get_job_logs.

Suggested fix

tools:
  github:
    toolsets: [default, actions]

default keeps the current toolsets. I'm happy to open a PR if that's useful.

Vorherrschende Sprache
Python
Sterne
1.1k
Forks
163
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus githubnext/agentics

Alle Issues in githubnext/agentics

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.