You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No Check Catches a Caller Passing an Input the Pinned Reusable Workflow No Longer Declares #2822
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.
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.
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:
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.
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.
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.pycheck_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".
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.
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.
Activity
ptr727 commentedon Oct 11, 2026
Read-only fleet sweep, run 2026-10-11 at the maintainer's request: no stale caller found.
registry/repos.json, on its default branch and ondevelopwhere it exists. Every job whoseuses:pinsptr727/ProjectTemplate/.github/workflows/<file>@<ref>was compared with that callee'sworkflow_callinterface at the pinned ref. The sweep looked for awith:key the callee does not declare, an input markedrequired: truewith no default that the caller omits, and a missing required secret (secrets: inheritcounted as satisfying every secret).nugetas an unknown input when a caller passesnuget: falsetobuild-release-task.ymlat currentmain, the shape this issue reports, so the empty result is not a comparison that cannot fire../.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.
ptr727 commentedon Nov 1, 2026
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 awith:key the pinned callee does not declare, or omitting a required input:spec/audit.py, orvalidate-task.ymlgating the Dependabot bump PR itself?Options, recommended first:
GH_TOKENand callsgh api, so reading the callee'sworkflow_callat the pinned SHA fits. Catches nothing in a repo not yet callingvalidate-task.yml. No work in flight.Evidence:
spec/audit.pycheck_interface(line 950) checks only required job keys, the ruleset check name, and tokens, and nothing reads a remoteworkflow_call..github/actions/repo-gate/action.yml:20setsGH_TOKEN,repo_gate.py:104already shells out togh 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
ptr727 commentedon Nov 1, 2026
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.
ptr727 commentedon Nov 22, 2026
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.mdis held by group 6 and is not claimed here.Grown set granted (2026-11-22):
.agents/skills/workflow-ci-contract/references/architecture.mdand its generated copies (regeneration only),.github/workflows/validate-task.yml(therepo-gate-exclude-globsdescription only),.github/actions/repo-gate/action.yml(description only).scripts/README.md(oneworkflow-inputsbullet) is granted once group 6 merges.Grown set granted (2026-11-22, second):
.github/workflows/validate-task.yml(the lint job'sSetup uvstep condition too),spec/project-types.json(thebranch.operational.lintciassertion)..agents/skills/branching-and-release-model/SKILL.md(one sentence) is granted once group 6 merges, withscripts/README.md.Granted (2026-11-22, after group 6 merged as #4353):
scripts/README.md(oneworkflow-inputsbullet),.agents/skills/branching-and-release-model/SKILL.md(the operational unit-test sentence) and its generated copies, and theignore-nothing-to-cachesetting plus its comment on the lint job'sSetup uv stepin.github/workflows/validate-task.yml.Check Reusable-Workflow Calls Against the Pinned Callee's Inputs (#4354)