Skip to content

[aw-compat] Recurring syntax mistakes: direct safe-outputs file reads, setup-uv caching #74100

Done

Description

@github-actions

Recurring syntax/configuration mistakes — cross-repo compatibility audit, 2026-11-02

Two recurring user-authoring mistakes were observed across multiple repositories during today's compile/fix/recompile audit (20 repos) plus the rolling compatibility-history cache. Neither is auto-fixable by gh aw fix since both require rewriting step logic rather than a mechanical rename/injection — flagging here for documentation/lint-rule follow-up instead.

1. Custom post-steps reading the safe-outputs file directly

Seen in 2 distinct repositories: Azure/azure-rest-api-specs, Z3Prover/z3 (both from the rolling history cache; not reproduced in today's 20, but recurring enough to flag).

Compiler error:

error: post-steps step N ("...") accesses the safe outputs output file directly; use safe-outputs instead

Authors write a custom post-steps entry that reads the safe-outputs JSON/output file path directly (e.g. via cat/jq on a known file path) instead of using the supported safe-outputs mechanism to consume agent output. This breaks whenever the safe-outputs file location or format changes, and is explicitly rejected by the compiler.

Suggested remediation: expand the reference docs' safe-outputs section with a "don't do this" example showing the direct-file-read anti-pattern side-by-side with the supported alternative, since this is apparently common enough to hit repeatedly.

2. Shared custom setup-uv step missing enable-cache: false

Seen in 1 repository today with unusually high blast radius: elastic/ai-github-actions — 56 of its 59 workflows share one setup-uv step template and all 56 fail compilation for the same reason.

Compiler error:

error: strict mode: custom setup-uv step "Setup uv" does not explicitly disable Actions caching;
set `with.enable-cache: false` to disable caching

This is a single-repo occurrence so it doesn't meet the normal 2-repo bar for "recurring," but it's included here because of how many workflows a single shared template can take down at once — worth watching for recurrence in future runs, and a good candidate to promote to the missing-codemods list if it reappears elsewhere.

Suggested remediation: when a repo relies on a single shared custom setup-uv snippet across many workflows, a one-line template fix (enable-cache: false) resolves all of them at once — worth calling out explicitly in strict-mode error guidance so authors know to fix it at the template level rather than per-workflow.

Repository excluded from this report

github/gh-aw-firewall's failures (in files named smoke-enclave-*.md / smoke-sink-*.md) were not included above — they look like intentional negative-path test fixtures for the sandbox/firewall feature rather than real authoring mistakes. See the companion daily summary issue for details.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions