fix(ci): allowlist build-time OMNIROUTE_BUILD_SHA in env-doc-sync

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.
This commit is contained in:
diegosouzapw
2026-06-03 20:08:44 -03:00
parent 838c2cab88
commit 20331afeec

View File

@@ -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).