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

release: bump Codex Security to 0.1.21 (#672)

mldangelo-oaifd98a9009b0a
diff --git a/.github/release-notes.md b/.github/release-notes.md
index 1f306709a..0249180fd 100644
--- a/.github/release-notes.md
+++ b/.github/release-notes.md
@@ -1,9 +1,36 @@
-<!-- release-version: 0.1.20 -->
+<!-- release-version: 0.1.21 -->
## Highlights
-- Bug fixes and reliability improvements for cloud publication, including
- access checks, recovery handling, and skipping findings that were already
- recorded.
+- Request an advisory assessment of a completed patch with
+ `patch --assess-patch-risk`. Add `--create-pr` to include its concise summary
+ in the draft pull request. The assessment is opt-in and does not approve or
+ merge changes. See
+ [patching and risk assessment](https://github.com/openai/codex-security/blob/npm-v0.1.21/sdk/typescript/README.md#validate-and-patch-findings).
+- Import GitHub code scanning alerts through the CLI or SDK for validation
+ against a local checkout. Imports are read-only and preserve the upstream
+ alert context. See
+ [GitHub alert imports](https://github.com/openai/codex-security/blob/npm-v0.1.21/sdk/typescript/README.md#import-github-code-scanning-alerts).
+- Publish findings from CSV with `publish scan --to cloud --csv PATH`, or
+ preview the upload without signing in or sending data with `--dry-run`.
+ See
+ [Cloud publication](https://github.com/openai/codex-security/blob/npm-v0.1.21/sdk/typescript/README.md#publish-findings-to-cloud).
+- Improve repeated-scan credential handling on Windows, sign-in recovery
+ messages, cleanup after interrupted publication, and refreshes of changed
+ bundled plugins.
+
+## Upgrade notes
+
+- Finish operations using older versions before upgrading; credential-home
+ locks now follow the owning process's lifetime. See
+ [authentication](https://github.com/openai/codex-security/blob/npm-v0.1.21/sdk/typescript/README.md#authentication).
+- The bundled Codex runtime and SDK are now `0.149.1`. Custom executables
+ selected with `CODEX_CLI_PATH` need thread-source attribution support for
+ both `exec` and `app-server` (Codex `0.149.1+`). See
+ [runtime configuration](https://github.com/openai/codex-security/blob/npm-v0.1.21/sdk/typescript/README.md#environment-variables).
+- Existing Windows state with invalid ancestor permissions is not repaired
+ automatically. Keep the old reports and select a new private state
+ directory as described in
+ [scan history and recovery](https://github.com/openai/codex-security/blob/npm-v0.1.21/sdk/typescript/README.md#scan-history-and-reruns).
The categorized list below contains the individual changes.
diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json
index 86f06b4cc..38f9a145a 100644
--- a/sdk/typescript/package.json
+++ b/sdk/typescript/package.json
@@ -1,6 +1,6 @@
{
"name": "@openai/codex-security",
- "version": "0.1.20",
+ "version": "0.1.21",
"description": "TypeScript SDK and CLI for Codex Security",
"license": "Apache-2.0",
"author": "OpenAI",
diff --git a/sdk/typescript/tests-ts/test-reports.test.ts b/sdk/typescript/tests-ts/test-reports.test.ts
index 27eda4015..d85fba7bf 100644
--- a/sdk/typescript/tests-ts/test-reports.test.ts
+++ b/sdk/typescript/tests-ts/test-reports.test.ts
@@ -1,4 +1,3 @@
-import { spawnSync } from "node:child_process";
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
@@ -96,21 +95,24 @@ describe("JUnit inventory comparison", () => {
const summary = join(fixture.root, "summary.md");
for (const failedReport of ["", expected[0]!]) {
await writeFile(summary, "");
- const result = spawnSync(
- bash,
- ["-e", "-o", "pipefail", "-c", `${mock}\n${script}`],
- {
- cwd: fixture.root,
- encoding: "utf8",
- env: {
- ...process.env,
- GITHUB_STEP_SUMMARY: "summary.md",
- CODEX_SECURITY_TEST_FAIL_REPORT: failedReport,
- },
- timeout: 10_000,
+ const child = Bun.spawn({
+ cmd: [bash, "-e", "-o", "pipefail", "-c", `${mock}\n${script}`],
+ cwd: fixture.root,
+ stdin: "ignore",
+ stdout: "ignore",
+ stderr: "pipe",
+ env: {
+ ...process.env,
+ GITHUB_STEP_SUMMARY: "summary.md",
+ CODEX_SECURITY_TEST_FAIL_REPORT: failedReport,
},
- );
- expect(result.status, result.stderr).toBe(failedReport === "" ? 0 : 1);
+ timeout: 10_000,
+ });
+ const [status, stderr] = await Promise.all([
+ child.exited,
+ new Response(child.stderr).text(),
+ ]);
+ expect(status, stderr).toBe(failedReport === "" ? 0 : 1);
expect((await readFile(summary, "utf8")).trim().split(/\r?\n/u)).toEqual(
expected,
);