Skip to content

ci: pass the image ref through env in the image gate - #431

Merged
jencryzthers merged 5 commits into
mainfrom
ci/image-gate-env
Oct 14, 2026
Merged

jencryzthers merged 5 commits into
mainfrom
ci/image-gate-env

Conversation

@jencryzthers

@jencryzthers jencryzthers commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Moves the manual image-gate workflow input into env.IMAGE and uses "$IMAGE" in the run: step, so ${{ inputs.image }} is no longer interpolated into the shell script. The checker logic is unchanged (still main's check --image). The engine-image-gate logic change moved to draft #443.

Preuve

What changes. inputs.image is bound to env.IMAGE; the script uses quoted "$IMAGE". A test (scripts/image-gate-env.test.mjs) asserts IMAGE comes from the dispatch input, is quoted, the input is not expanded inline, and engine-image-gate.mjs is not called.

Why. Interpolating a dispatch string into run: exposes it to the shell; env: plus a quoted variable prevents splitting and expansion.

Diff vs main

 .github/workflows/gox-image-gate.yml | 12 +++++-------
 scripts/image-gate-env.test.mjs      | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+), 7 deletions(-)

Commands

$ pnpm exec vitest run scripts/image-gate-env.test.mjs
 Test Files  1 passed (1)
      Tests  1 passed (1)
$ pnpm lint       # exit 0
$ pnpm typecheck  # exit 0

HEAD: eceba3cfc1bd696538af6250d2ed1c6ebcfbf3fd

jencryzthers and others added 2 commits October 13, 2026 15:24
Keep the image ref in IMAGE. Point the manifest check at the public
engine-image-gate script so the pull request no longer names a client
deploy wrapper.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
@jencryzthers
jencryzthers marked this pull request as ready for review October 14, 2026 00:30
cursoragent and others added 3 commits October 14, 2026 00:32
Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
The manual gate must read inputs.image only through env and quote
$IMAGE in the run script. This PR does not change which checker runs.

Co-authored-by: Jean-Christophe Proulx <j.christophe@devjc.net>
@cursor
cursor Bot marked this pull request as draft October 14, 2026 00:44
@jencryzthers
jencryzthers marked this pull request as ready for review October 14, 2026 03:15
@jencryzthers
jencryzthers merged commit bfa303e into main Oct 14, 2026
29 of 33 checks passed
cursor Bot pushed a commit that referenced this pull request Oct 14, 2026
Take the image-gate env binding from #431 so the dispatch ref is no
longer interpolated inside the run script.
cursor Bot pushed a commit that referenced this pull request Oct 14, 2026
#439 (term-guard hosted runner) and #431 (image gate env) landed first.
Restore runner-guard.yml, term-guard.md and check-runner-labels.test.mjs
from main; drop the .node-test.mjs rename.
cursor Bot pushed a commit that referenced this pull request Oct 14, 2026
Keep the image-gate filename and generic helper; take main's IMAGE env
for the image ref (#431).

# Conflicts:
#	.github/workflows/gox-image-gate.yml
@jencryzthers
jencryzthers deleted the ci/image-gate-env branch October 14, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants