OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
TypeScript ai-securityapplication-securityclicode-scanningcodexcodex-securitycybersecuritydevsecopsnodejsnpmopenaisdksecuritytypescriptvulnerability-scanning
fix(deep-scan): stop workers when the plan does not include Codex (#1843)
Lanre Shittua51602904c2b
diff --git a/plugins/codex-security/mcp-app/src/deep-scan/errors.ts b/plugins/codex-security/mcp-app/src/deep-scan/errors.tsindex 57317357f..98127bf34 100644--- a/plugins/codex-security/mcp-app/src/deep-scan/errors.ts+++ b/plugins/codex-security/mcp-app/src/deep-scan/errors.ts@@ -25,6 +25,7 @@ export class DeepScanNonRetryableError extends Error {const USAGE_LIMIT_MESSAGES = new Set(["Quota exceeded. Check your plan and billing details.",+ "To use Codex with your ChatGPT plan, upgrade to Plus: https://chatgpt.com/explore/plus.","Your workspace is out of credits. Add credits to continue.","Your workspace is out of credits. Ask your workspace owner to refill in order to continue.","You hit your spend cap set in your workspace. Increase your spend cap to continue.",diff --git a/plugins/codex-security/mcp-app/tests/test_deep_scan_errors.ts b/plugins/codex-security/mcp-app/tests/test_deep_scan_errors.tsindex 6737c2216..4e81cf42f 100644--- a/plugins/codex-security/mcp-app/tests/test_deep_scan_errors.ts+++ b/plugins/codex-security/mcp-app/tests/test_deep_scan_errors.ts@@ -107,6 +107,7 @@ function testWorkerErrorClassificationPreservesExplicitFailures() {function testUsageLimitClassification() {for (const message of ["Quota exceeded. Check your plan and billing details.",+ "To use Codex with your ChatGPT plan, upgrade to Plus: https://chatgpt.com/explore/plus.","Your workspace is out of credits. Add credits to continue.","Your workspace is out of credits. Ask your workspace owner to refill in order to continue.","You hit your spend cap set in your workspace. Increase your spend cap to continue.",