Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

chore(codex-security): sync public projection

soyeon-oai109400e506af
diff --git a/sdk/typescript/plugin-files.json b/sdk/typescript/plugin-files.json
index b6284b1dc..56862a76f 100644
--- a/sdk/typescript/plugin-files.json
+++ b/sdk/typescript/plugin-files.json
@@ -1,6 +1,7 @@
{
"externalOwnedExact": [
- ".codex-plugin/plugin.json"
+ ".codex-plugin/plugin.json",
+ "OWNERS"
],
"shippedExact": [
".app.json",
diff --git a/sdk/typescript/scripts/check-package.mjs b/sdk/typescript/scripts/check-package.mjs
index 558bb5f1f..ca4095198 100644
--- a/sdk/typescript/scripts/check-package.mjs
+++ b/sdk/typescript/scripts/check-package.mjs
@@ -95,8 +95,14 @@ if (
) {
throw new Error("Plugin projection contract contains invalid paths.");
}
+const publicManifest = ".codex-plugin/plugin.json";
+if (!externalOwnedExact.includes(publicManifest)) {
+ throw new Error(
+ "Plugin projection contract must declare the public manifest as externally owned.",
+ );
+}
const pluginPaths = [
- ...externalOwnedExact,
+ publicManifest,
...shippedExact.filter((path) => !path.startsWith("sdk/")),
];
const pluginFiles = new Set(pluginPaths);