Skip to content

[product-manager-impersonator] Lint dogfood-with.yml overrides against workflow inputs #619

Description

@github-actions

Feature Idea

Summary: Add a lint check that validates every gh-agent-workflows/*/dogfood-with.yml key against the corresponding workflow’s declared workflow_call inputs before trigger generation.

Why a Customer Would Want This

Maintainers rely on dogfood overrides to test workflows in this repo, and a typo in override keys can silently produce incorrect trigger behavior until much later in CI/runtime. A fast, local validation step reduces debugging time and makes workflow authoring safer.

Rough Implementation Sketch

  • Add scripts/check-dogfood-overrides.py to map each gh-agent-workflows/(name)/dogfood-with.yml to .github/workflows/gh-aw-(name).md and validate override keys against declared workflow_call.inputs.
  • Add lint-dogfood-overrides to Makefile and include it in make lint.
  • Emit actionable failures (workflow, unknown key, optional close-match suggestion).
  • Document the new lint step in gh-agent-workflows/DEVELOPING.md near the dogfood override section.

Why It Won't Be That Hard

The mapping is already deterministic by naming convention, and the existing toolchain already has script-based lint checks wired via make lint; this is an additive guardrail with a small implementation surface.

Evidence


What is this? | From workflow: Trigger Product Manager Impersonator

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions