You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
audit-workflows: gh aw logs MCP tool fails with 'unable to find git executable in PATH' #26346
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.
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)
@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
Activity
Copilot commentedon Apr 15, 2026
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)
pelikhan commentedon Apr 15, 2026
@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