Skip to content

[aw-compat] Missing codemod proposals: tools.web-fetch fix incomplete, create-github-app-token permissions #74099

Not planned

Description

@github-actions

Missing codemod proposals — cross-repo compatibility audit, 2026-11-02

Two codemod gaps were confirmed across multiple independent repositories during today's compile/fix/recompile audit of 20 public gh-aw consumers.

1. tools.web-fetch + Copilot offline BYOK — incomplete auto-fix (high priority)

Seen in 10 distinct repositories across today's run and the rolling compatibility-history cache: Hack23/euparliamentmonitor (today), Azure/azure-rest-api-specs, Azure/azure-sdk-for-java, Jguer/yay, Z3Prover/z3, fable-compiler/Fable, home-assistant/core, microsoft/typespec, py-why/dowhy, taosdata/TDengine.

Compiler error:

error: [...] Validation failed for field 'tools.web-fetch'
Reason: Copilot's native 'web-fetch' tool is unavailable because offline BYOK mode disables web tools (COPILOT_OFFLINE=true)
Suggestion: Remove tools.web-fetch and configure an MCP server instead, or use a supported engine

gh aw fix --write already contains a codemod for this ("Remove unsupported Copilot web-fetch tool"), but it is incomplete: in Hack23/euparliamentmonitor it fixed only 1 of 15 affected workflow files (news-translate.md), leaving the other 14 with the identical unresolved error after fix --write + recompile.

Example diff from the one file it did fix
+++ b/.github/workflows/news-translate.md
@@ -135,7 +135,6 @@ tools:
       - all
   bash: true
   edit:                   # explicit file-edit tool for translation files
-  web-fetch:              # IATE / EP termbase lookup fallback
   agentic-workflows: true

Suggested fix: audit the tools.web-fetch removal codemod's file-matching/traversal logic — it should apply uniformly to every workflow file with the offending key, not stop after the first match or skip files with trailing comments/different YAML formatting on the web-fetch: line.

2. create-github-app-token missing permission-* inputs — no codemod yet (medium priority)

Seen in 2 distinct repositories: microsoft/aspire (today) and bootc-dev/bootc (prior run).

Compiler error:

error: strict mode: actions/create-github-app-token in job "..." has no explicit permission-* inputs;
add only the required permission scopes under with: to avoid minting a fully scoped installation token

This is mechanically derivable: the minimal required scopes can usually be inferred from how the minted token is consumed later in the same job (e.g. which gh / API calls use it). gh aw fix --write currently leaves this error untouched in both observed repos.

Suggested fix: add a new codemod to gh aw fix that inspects downstream usage of the token output within the job and injects the smallest sufficient permission-* inputs under the create-github-app-token step's with: block, falling back to a clearly-marked placeholder scope plus a warning comment when usage can't be statically inferred.

Related gap worth a follow-up look

While investigating case 1, we also noticed that on Azure/azure-rest-api-specs the deprecated safe-output key warning ('missing-data'/'missing-tool' → 'report-missing-data'/'report-missing-tool') is identical before and after running gh aw fix --write, even though the warning text itself says "Run gh aw fix to migrate." This single-repo observation didn't meet the 2-repo bar for a standalone item here, but combined with finding #1 it suggests gh aw fix's codemod dispatch may be silently no-oping for certain repo/frontmatter shapes rather than failing loudly. Worth a direct investigation independent of this audit.

Generated by 🔧 Daily AW Cross-Repo Compile Check · claude · agent · ~390 AIC · ⌖ ~1 AIC · ⊞ 4.3K · ◷

  • expires on Nov 9, 2026, 1:01 AM UTC-08:00

Activity

  1. github-actions commented on Nov 3, 2026

    @github-actions
    ContributorAuthor

    This issue is being closed as outdated. A newer issue has been created: #74465

    View newer issue


    This action was performed automatically by the Daily AW Cross-Repo Compile Check workflow.

  2. github-actions commented on Nov 3, 2026

    @github-actions
    ContributorAuthor

    This issue is being closed as outdated. A newer issue has been created: #74466

    View newer issue


    This action was performed automatically by the Daily AW Cross-Repo Compile Check workflow.

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