Skip to content

[aw-compat] Missing codemod: post-steps direct safe-outputs file access needs auto-rewrite (2 repos hit guided-error only) #75143

Not planned

Description

@github-actions

Overview

In this run's audit of the top 20 public gh-aw-consuming repos (by stars), 2 independent repos hit the same pattern that gh aw fix --write currently only reports as a guided error instead of fixing: a custom post-steps script reads the safe-outputs output file directly rather than going through the documented safe-outputs mechanism.

Evidence

gh aw fix --write output (verbatim):

✗ Error processing ci-status-fix-net11.md: codemod post-steps-safe-outputs-guided-error failed: post-steps step 1 ("Require every registered safe output to be captured") accesses the safe outputs output file directly; use safe-outputs instead. See: https://github.github.com/gh-aw/reference/safe-outputs/

gh aw compile --strict then fails on the same files both before and after the fix pass, since the guided-error codemod makes no edits.

Affected repos and files (6 occurrences across 2 repos)
  • dotnet/maui: ci-status-fix-net11.md, ci-status-fix.md, ci-status-main.md, ci-status-net11.md, ci-scan-fix.md (5 workflows)
  • Azure/azure-rest-api-specs: issue-triage.md (1 workflow)

Suggested codemod

Add a real (non-guided) codemod that detects the common, mechanical case — a post-step shell command that cats / jqs the safe-outputs file path directly (e.g. $GITHUB_AW_SAFE_OUTPUTS_FILE or equivalent) purely to assert it was populated or to read specific fields — and rewrites it to use the documented safe-outputs helper/accessor instead. Where the usage is more complex (e.g. custom validation logic beyond a simple existence/field check), keep falling back to today's guided error so no incorrect rewrite is ever applied silently.

Why this matters

Both hits come from large, independently-maintained repos (not forks of each other), suggesting this is a real, recurring authoring pattern rather than a one-off. Since the guided error gives a clear message but requires a human to manually rewrite each occurrence, a working codemod would let gh aw fix --write fully unblock these repos without maintainer intervention.

Secondary candidate (does not meet the 2-repo bar, included for completeness)

bootc-dev/bootc's drafter.md, fix.md, review.md still fail actions/create-github-app-token ... has no explicit repositories input after gh aw fix --write, because the existing "Add explicit GitHub App token permissions" codemod only adds permission-contents: none and does not add the repositories: ${{ github.repository }} field that strict mode also requires. This is a small, well-scoped extension to an existing codemod rather than a new one, and is easy to verify since it only needs the missing field appended when absent.

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

  • expires on Nov 12, 2026, 1:07 AM UTC-08:00

Activity

  1. github-actions commented on Nov 6, 2026

    @github-actions
    ContributorAuthor

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

    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

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions