Skip to content

Docs: pre-agent-steps: missing from Allowed Import Fields list #31909

Closed

Description

@tore-unumed

Documentation inconsistency

The Imports reference lists Allowed Import Fields for shared workflow components (files without on:):

Shared workflow files (without on: field) can define:
import-schema:, tools:, mcp-servers:, services:, safe-outputs:, mcp-scripts:, network:, permissions:, runtimes:, secret-masking:, env:, github-app:, checkout:, engine.mcp

pre-agent-steps: is not listed, yet the compiler accepts it in a shared workflow file and correctly places the steps in the compiled lock file (after artifact download, before engine execution).

Reproduction

  1. Create a shared component with pre-agent-steps::
---
# shared/my-pre-agent-setup.md
pre-agent-steps:
  - name: Prepare context
    run: echo "preparing context"
---
  1. Import it from a main workflow:
---
on: workflow_dispatch
engine: copilot
imports:
  - shared/my-pre-agent-setup.md
---
  1. Compile — succeeds with 0 errors, 0 warnings. The step appears in the lock file at the correct position.

Expected

Either:

  • Add pre-agent-steps: to the Allowed Import Fields list and document its merge semantics (presumably same as steps: — imported steps prepended in import order), or
  • Reject it at compile time if importing pre-agent-steps: is not intended to be supported.

The same question applies to post-steps:, which is also absent from the list — I haven't tested whether the compiler accepts it in imports.

Version

gh aw version: 0.71.5

Activity

  1. Copilot commented on May 13, 2026

    Copilot
    Contributor

    The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists. (Request id: C4A4:25EC23:F73AD3:FA0914:6A044FD1)

  2. locked and limited conversation to collaborators on May 13, 2026
  3. unlocked this conversation on May 13, 2026
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