Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

test(check): escape the runs-on fixture with JSON.stringify, not a quote-only replace (#11942)

Diego Rodrigues de Sa e Souza24c0643a94cf
diff --git a/tests/unit/check-workflows-provenance-runner.test.ts b/tests/unit/check-workflows-provenance-runner.test.ts
index 826327fdbd..d7edb51cec 100644
--- a/tests/unit/check-workflows-provenance-runner.test.ts
+++ b/tests/unit/check-workflows-provenance-runner.test.ts
@@ -59,7 +59,7 @@ test("classifyRunsOn: hosted labels are hosted, opaque expressions are unknown (
test("flags --provenance inside a job routed to the self-hosted pool", () => {
const found = findProvenanceOnSelfHosted(
workflow(
- `"${VPS_EXPR.replace(/"/g, '\\"')}"`,
+ JSON.stringify(VPS_EXPR),
'npm stage publish --provenance --access public --tag "$TAG"'
),
"npm-publish.yml"