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"