Skip to content

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

Closed

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

Activity

  1. Copilot commented on Apr 15, 2026

    Copilot
    Contributor

    The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists. (Request id: 6750:ADD9C:46DB781:127E08DF:69DEF4F8)

  2. locked and limited conversation to collaborators on Apr 15, 2026
  3. unlocked this conversation on Apr 15, 2026
  4. pelikhan commented on Apr 15, 2026

    @pelikhan
    Collaborator

    @copilot make sure GITHUB_REPOSITORY is passed when configuring the gh-aw MCP server and the env variable is passed in the MCP when spawning the logs command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions