Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ const applicationRoot = path.resolve(
".."
);
const pluginRoot = path.resolve(applicationRoot, "..");
const bundledPluginRoot = path.resolve(
applicationRoot,
"../../../sdk/typescript/_bundled_plugin"
);
const bundledPluginRoot = process.env.CODEX_SECURITY_TEST_PLUGIN_ROOT
? path.resolve(process.env.CODEX_SECURITY_TEST_PLUGIN_ROOT)
: path.resolve(applicationRoot, "../../../sdk/typescript/_bundled_plugin");
const temporaryRoot = await mkdtemp(path.join(tmpdir(), "codex-security-artifact-mcp-"));

try {
Expand Down
7 changes: 3 additions & 4 deletions plugins/codex-security/mcp-app/tests/test_mcp_app_smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ const sourcePluginRoot = path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
"../..",
);
const pluginRoot = path.resolve(
sourcePluginRoot,
"../../sdk/typescript/_bundled_plugin",
);
const pluginRoot = process.env.CODEX_SECURITY_TEST_PLUGIN_ROOT
? path.resolve(process.env.CODEX_SECURITY_TEST_PLUGIN_ROOT)
: path.resolve(sourcePluginRoot, "../../sdk/typescript/_bundled_plugin");
const mcpAppRoot = path.join(sourcePluginRoot, "mcp-app");
const pluginManifest = JSON.parse(
await readFile(path.join(pluginRoot, ".codex-plugin", "plugin.json"), "utf8"),
Expand Down
Loading