From 20331afeeca845e4f570d8232f89a5ff3bb58b1a Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 3 Jun 2026 20:08:44 -0300 Subject: [PATCH] fix(ci): allowlist build-time OMNIROUTE_BUILD_SHA in env-doc-sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build:release injects OMNIROUTE_BUILD_SHA (git short SHA) read by write-build-sha.mjs to stamp dist/BUILD_SHA — it's build-time only, never a user .env var, so it belongs in IGNORE_FROM_CODE (like OMNIROUTE_CLI_SKIP_REPO_ENV) rather than .env.example/ENVIRONMENT.md. Fixes the Docs Sync (Strict) CI job. --- scripts/check/check-env-doc-sync.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check/check-env-doc-sync.mjs b/scripts/check/check-env-doc-sync.mjs index 45933dbf48..d26584421c 100644 --- a/scripts/check/check-env-doc-sync.mjs +++ b/scripts/check/check-env-doc-sync.mjs @@ -117,6 +117,10 @@ const IGNORE_FROM_CODE = new Set([ // Test-only opt-out: instructs bin/omniroute.mjs to skip auto-loading the // repository .env so isolation tests get a deterministic environment. "OMNIROUTE_CLI_SKIP_REPO_ENV", + // Build-time only: set by `build:release` (git short SHA) and read by + // write-build-sha.mjs to stamp dist/BUILD_SHA — injected by the build, never + // configured by users in .env. + "OMNIROUTE_BUILD_SHA", // Source typo / placeholder. "OMNIROUT", // Static config alias path (the canonical var is OMNIROUTE_PAYLOAD_RULES_PATH).