ci(measure): the flip gate runs where its terminology sidecar resolves - #541
Conversation
cms122/cms125/cms130/cms165 pin VSAC-completed sidecars the uncredentialed local vendor cannot reproduce, so `pnpm flip-gate` on a laptop reads an UNAVAILABLE deck and a zero initial population for them. This manual workflow vendors with the VSAC secret, sweeps the Maui roster, and uploads the gate's JSON for a flip PR. Descriptive, like the gate itself (ADR-072): routing stays the workflow edit in deploy-maui-mieweb.yml.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f942e17584
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| echo "::error::No VSAC credential in this context. A gate over capped expansions reads a zero initial population and calls it a finding — refusing rather than reporting it." | ||
| exit 1 | ||
| fi | ||
| NAME="$(pnpm exec tsx -e "import {officialMeasureName} from './src/standards/official-cases.ts'; process.stdout.write(officialMeasureName('${{ inputs.measure }}') ?? '')")" |
There was a problem hiding this comment.
Route dispatch inputs through validated environment variables
workflow_dispatch values can be supplied as arbitrary strings through gh workflow run --raw-field or JSON, and GitHub expands ${{ inputs.measure }} before Bash parses this command. A crafted value containing $(...) therefore executes inside the step that exposes WORKWELL_VSAC_API_KEY_VENDOR; the same interpolation pattern later permits fabrication of the uploaded gate evidence. Pass inputs through env:, validate them, and reference only shell variables, matching the boundary already enforced by vendor-workflow-safety.test.ts.
Useful? React with 👍 / 👎.
A manual
workflow_dispatchworkflow that vendors a measure's terminology with the VSAC secret, runspnpm flip-gate --subjects allover the Maui roster, and uploads.flip-gate/<id>-<date>.json. Needed because cms130 and cms165 pin VSAC-completed sidecars that do not resolve locally (docs/DEPLOY.md, "Flipping a measure"), and GitHub only registers a dispatchable workflow once it is on the default branch — so this lands ahead of the flip PR that needs its evidence. No application code.