Repository navigation
fix(ci): backend deploys fail to load — a composite action cannot read vars - #15348
Merged
Merged
Conversation
…er cohort as an input #15334 referenced vars.DEV_FREE_TIER_LOCAL_PROCESSING_COHORT inside the deploy-backend-stack composite action. GitHub rejects such an action at load time, so every backend deploy from main, dev and prod, failed before its first step. Take the value as an input; only the calling workflows read the variable, and the manual workflow only for a development dispatch. Adds a test that scans every composite action for vars./secrets. references, verified red on main. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Unbreaks every backend deploy from
main. #15334 (mine, merged 2026-09-21T05:28Z asf2320d8762) referenced${{ vars.DEV_FREE_TIER_LOCAL_PROCESSING_COHORT }}inside the composite action.github/actions/deploy-backend-stack. A composite action cannot read thevarscontext, so GitHub rejects the action at load time:Observed on "Auto Deploy Backend to Development" run 35565085049 for
8169b2eb88. The same action is used bygcp_backend.yml, so a production backend deploy frommainwould fail the same way. It fails closed — nothing wrong was deployed — but nothing can be deployed either.Fix
The cohort becomes an action input (
dev_free_tier_local_processing_cohort, default empty). Only the calling workflows read the variable:gcp_backend_auto_dev.ymlpasses it;gcp_backend.ymlpasses it only when the dispatch is fordevelopment, so a production run never carries it. The prod overlay still renders a literal empty regardless.Why it got through
The file is valid YAML; the wiring test asserted the exact
vars.…string it should never have contained; an independent model review checked scope fallback and injection but not context availability; and nothing in preflight executes or context-checks a composite action. New testtest_no_composite_action_reads_a_context_it_cannot_accessscans every composite action's expressions forvars./secrets.. Verified red againstorigin/main(3 offenders, lines 543/568/960) and green here.Also verified: every job that reads the variable declares
environment:, which an environment-scoped variable requires in order to resolve at all.Product invariants affected
Failure-Class: new
New class
FC-composite-action-reads-unavailable-context, defined in this PR.Verification
Layer: repository checks and unit tests. Not yet verified by a live deploy — the first "Auto Deploy Backend to Development" run after merge is the real proof, and I will report its result on this PR.
actionlinton both calling workflows — clean.test_free_tier_basic_gates.py— 138 passed, including the new context test and the updated caller-wiring assertions.scripts/pr-preflight --pr-body-file …— passed, 42 checks.🤖 Generated with Claude Code