Skip to content

No Check Catches a Caller Passing an Input the Pinned Reusable Workflow No Longer Declares #2822

Description

@ptr727

Evidence

A downstream caller of the hub's build-release-task.yml still passed nuget: false, an input the hub removed in favor of enable_nuget (#1162). The call was valid at the pin the repository adopted. A grouped Dependabot actions-deps bump then moved the pin to a revision whose workflow_call interface no longer declares nuget. After that bump, GitHub rejects the reusable-workflow call before any job runs.

Nothing caught it before a review of the next promotion pull request:

  • The caller is a dispatch-only publish-release.yml (operational model, workflow_dispatch only), so no pull request or push event ever exercises it, and the Dependabot PR's CI stays green.
  • actionlint validates the inputs of a local reusable workflow, but it cannot check a remote owner/repo/...@sha callee.
  • spec/audit.py has no interface check comparing a caller's with: keys, or its required inputs and secrets, against the callee's workflow_call declaration at the pinned SHA.

Constructed reproduction: a caller job with uses: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml@<sha> and with: { nuget: false, enable_nuget: false, ... }, where <sha> is any revision after #1162. gh workflow run then fails with an unexpected-input error.

Ask

Add a mechanical check for this class, either in spec/audit.py (interface workflows) or in validate-task.yml so it gates the bump PR itself. For every uses: ptr727/ProjectTemplate/...@<sha> job, the check fails on a with: key the callee does not declare at that SHA, and on a callee input marked required: true that the caller omits. Gating it in validate-task.yml would make a Dependabot bump that breaks a caller fail on its own pull request instead of at the next release dispatch.

Activity

  1. added
    gate
    on Oct 11, 2026
  2. ptr727 commented on Oct 11, 2026

    @ptr727
    OwnerAuthor

    Read-only fleet sweep, run 2026-10-11 at the maintainer's request: no stale caller found.

    • Scope: every repository in registry/repos.json, on its default branch and on develop where it exists. Every job whose uses: pins ptr727/ProjectTemplate/.github/workflows/<file>@<ref> was compared with that callee's workflow_call interface at the pinned ref. The sweep looked for a with: key the callee does not declare, an input marked required: true with no default that the caller omits, and a missing required secret (secrets: inherit counted as satisfying every secret).
    • Result: zero findings across 184 caller jobs and 20 distinct callee (file, ref) pairs. No repository, file, or ref failed to read.
    • Positive control: the comparison flags nuget as an unknown input when a caller passes nuget: false to build-release-task.yml at current main, the shape this issue reports, so the empty result is not a comparison that cannot fire.
    • Not covered: local ./.github/workflows/* callees, which actionlint already checks, and the hub's own $/ self-references.

    So the latent break has no other instance in the fleet right now. The gate this issue asks for is still owed, since the next pin bump can bring the problem back.

  3. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision needed (decision triage, 2026-11-01)

    Question: Where should the check go that catches a caller of ptr727/ProjectTemplate/.github/workflows/<task>.yml@<sha> passing a with: key the pinned callee does not declare, or omitting a required input: spec/audit.py, or validate-task.yml gating the Dependabot bump PR itself?

    Options, recommended first:

    1. Gate it in validate-task.yml's repo gate (recommended): A pin bump that breaks a caller fails on its own PR, closing the reported gap (dispatch-only callers are never exercised before a release). The repo gate already runs with GH_TOKEN and calls gh api, so reading the callee's workflow_call at the pinned SHA fits. Catches nothing in a repo not yet calling validate-task.yml. No work in flight.
    2. Put it in spec/audit.py only: Reaches every registered repository, but audits are owner-run and read-only, so the break still lands on develop first and surfaces later, as it did here. No work in flight.
    3. One implementation used by both: Covers non-adopters and bump PRs, the most work, and the audit side can follow option 1 later. No work in flight.

    Evidence: spec/audit.py check_interface (line 950) checks only required job keys, the ruleset check name, and tokens, and nothing reads a remote workflow_call. .github/actions/repo-gate/action.yml:20 sets GH_TOKEN, repo_gate.py:104 already shells out to gh api. The maintainer's 2026-10-11 sweep found no stale caller across 184 caller jobs and concluded "The gate this issue asks for is still owed".

    Blocks: none

  4. added
    decision
    on Nov 1, 2026
  5. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (decision triage, 2026-11-01): Option 1: gate it in validate-task.yml's repo gate, reading the callee's workflow_call declaration at the pinned SHA, so a breaking pin bump fails its own PR. This is now work for the next burndown round.

  6. removed
    decision
    on Nov 1, 2026
  7. ptr727 commented on Nov 22, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-22): the branch merged as #4354 and was cleaned up, so this claim holds no files.

    Backlog burndown claim (round 4, group 8, 2026-11-22): branch burndown/r4-workflow-contract-gate, issues #2822, #3896.

    Predicted files: .github/actions/repo-gate/repo_gate.py, tests/test_repo_gate.py, WORKFLOW.md. docs/reusable-workflows.md is held by group 6 and is not claimed here.

    Grown set granted (2026-11-22): .agents/skills/workflow-ci-contract/references/architecture.md and its generated copies (regeneration only), .github/workflows/validate-task.yml (the repo-gate-exclude-globs description only), .github/actions/repo-gate/action.yml (description only). scripts/README.md (one workflow-inputs bullet) is granted once group 6 merges.

    Grown set granted (2026-11-22, second): .github/workflows/validate-task.yml (the lint job's Setup uv step condition too), spec/project-types.json (the branch.operational.lintci assertion). .agents/skills/branching-and-release-model/SKILL.md (one sentence) is granted once group 6 merges, with scripts/README.md.

    Granted (2026-11-22, after group 6 merged as #4353): scripts/README.md (one workflow-inputs bullet), .agents/skills/branching-and-release-model/SKILL.md (the operational unit-test sentence) and its generated copies, and the ignore-nothing-to-cache setting plus its comment on the lint job's Setup uv step in .github/workflows/validate-task.yml.

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

    gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions