Skip to content

[deep-report] Add compiler validation rejecting await inside non-async functions in bundled .cjs action scripts #43218

Description

@github-actions

Description

PR #43170 added await coreObj.summary.write(); at actions/setup/js/parse_mcp_gateway_log.cjs:236, inside the non-async helper writeStepSummaryWithTokenUsage — a hard SyntaxError at require() time that hard-reds every workflow's "Parse MCP Gateway logs" and "Handle agent failure" steps on that PR ref (P0). The specific fix is tracked (#43200/#43201), but this class of module-load failure can recur for any bundled .cjs action script.

Add a compile-time / lock-generation validation (or a lint check on actions/**/js/*.cjs) that fails the build when await appears inside a non-async function, so the error is caught before lock files ship rather than at workflow runtime across both claude and copilot engines.

Expected Impact

Prevents an entire class of fleet-wide P0 module-load SyntaxError regressions from reaching runtime.

Suggested Agent

compiler-quality or eslint-factory agent.

Estimated Effort

Quick (< 1 hour)

Data Source

DeepReport Intelligence analysis run 2026-07-03 (workflow-run 28669423540); #43200/#43201.

Generated by 🔬 Deep Report · 171.9 AIC · ⌖ 17.4 AIC · ⊞ 10.2K ·

  • expires on Jul 5, 2026, 7:30 AM UTC-08:00

Activity

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