Repository navigation
Description
Missing codemod: gh aw fix --write doesn't follow imports: when removing unsupported tools
gh aw fix --write has a working codemod that removes an unsupported Copilot tools.web-fetch declaration (the strict-mode error is Copilot's native 'web-fetch' tool is unavailable because offline BYOK mode disables web tools). It is confirmed correct when the tool is declared inline in a workflow's own frontmatter, but it does not look inside files referenced via imports:, so workflows that compose their tool config through a shared fragment stay broken even after the "automatic upgrade" pass.
Repositories demonstrating this pattern (3):
| Repo | Declaration style | Fixed by fix --write? |
|---|---|---|
tosin2013/mcp-adr-analysis-server |
inline | ✅ yes (1/1 file) |
githubnext/tsb |
inline | ✅ yes (3/3 files) |
Hack23/euparliamentmonitor |
via imports: - uses: shared/config/news-tools.md |
❌ no (1/14 files — only the one workflow that also declared it inline) |
Concrete example — Hack23/euparliamentmonitor
13 of 15 news-*.md workflows fail compile with:
error: Validation failed for field 'tools.web-fetch'
Value: web-fetch
Reason: strict mode: tools.web-fetch is not allowed because ... offline BYOK mode disables web tools (COPILOT_OFFLINE=true)
None of these 13 files declare tools: directly — they all pull it in via:
imports:
- .github/agents/news-generation.agent.md
- shared/config/news-common-settings.md
- shared/config/news-safe-outputs-domains.md
- shared/config/news-safe-outputs-head.md
- uses: shared/config/news-tools.mdshared/config/news-tools.md is where web-fetch actually lives. Running gh aw fix --write reported:
✓ news-translate.md
• Remove unsupported Copilot web-fetch tool
✓ Applied fixes to 1 of 15 workflow files
— it found and fixed the single workflow with an inline tools: block, but never touched shared/config/news-tools.md, leaving the other 13 consumers of that fragment still failing after recompile.
Proposed change
When fix --write detects a tools.* strict-mode violation, resolve the declaring file through the workflow's imports:/uses: chain instead of assuming the violation is always in the workflow's own frontmatter. Apply the fix once to the shared fragment (de-duplicating across all workflows that import it) rather than skipping it.
Related but out of scope for this issue (single-repo, didn't meet the 2-repo bar for a formal codemod proposal)
elastic/ai-github-actions: a shared fragment (gh-aw-fragments/runtime-setup.md) defines a customastral-sh/setup-uv@v5step missingenable-cache: false, breaking 56/59 workflows;fix --writedoesn't detect this pattern at all yet. Flagged in the daily summary issue and the common-syntax-errors issue.microsoft/aspire: hand-authored rawactions/create-github-app-tokensteps (not compiler-templated) missingpermission-*inputs aren't reached by fix.
References: §41605306491
Generated by 🔧 Daily AW Cross-Repo Compile Check · claude · agent · ~400 AIC · ⌖ ~1 AIC · ⊞ 4.4K · ◷
- expires on Nov 10, 2026, 1:06 AM UTC-08:00
Activity
github-actions commentedon Nov 4, 2026
This issue is being closed as outdated. A newer issue has been created: #74809
View newer issue
This action was performed automatically by the
Daily AW Cross-Repo Compile Checkworkflow.