Skip to content

audit-workflows: gh aw logs MCP tool fails with 'unable to find git executable in PATH' #26346

@yskopets

Description

@yskopets

Summary

The discussion generated by the Audit Workflows workflow includes the following infrastructure note:

Infrastructure note: The gh aw logs MCP tool is unavailable in this environment (git is not in PATH), preventing direct access to workflow run logs and metrics.

Error Details

The agent-stdio.log artifact contains the following MCP error when the audit agent attempts to use the gh aw logs tool:

MCP error -32603: calling "tools/call": failed to download workflow logs:
✗ failed to list workflow runs (exit code 1):
failed to determine base repo: unable to find git executable in PATH;
please install git before retrying

Timestamp: 2026-04-14T22:07:44.449Z

Impact

Because git is not available in the audit agent sandbox, the gh aw logs MCP tool cannot list or download workflow run logs. The audit agent falls back to GitHub API data (PRs, issues, commits) as a proxy for workflow health, losing access to:

  • Per-run token counts and costs
  • Per-workflow success/failure rates
  • MCP tool failure details
  • Firewall and network access logs from individual runs

The agent records this as a recurring infrastructure limitation across runs in its cache memory.

Expected Behavior

The gh aw logs MCP tool should work in the audit-workflows agent environment. Either git should be available in PATH inside the sandbox, or the tool should not depend on git to list/download workflow run logs.


Reported by Claude Sonnet 4.6

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions