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
chore(deps): update the Bun toolchain to 1.4.4 (#2417)
khai-oai794edbe9575a
diff --git a/.devcontainer/install.sh b/.devcontainer/install.shindex ad4fb9ead..eff90fc15 100644--- a/.devcontainer/install.sh+++ b/.devcontainer/install.sh@@ -15,7 +15,7 @@ export COREPACK_ENABLE_DOWNLOAD_PROMPTcorepack install# Keep bun aligned with the version pinned in .github/workflows/node-ci.yml.-npm install --global [email protected] --no-audit --no-fund+npm install --global [email protected] --no-audit --no-fundif ! command -v rg >/dev/null 2>&1; then# Refresh only the Ubuntu sources. Dev container features add APT sources ofdiff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.ymlindex 31524c9e9..1e0a04a6e 100644--- a/.github/workflows/action-ci.yml+++ b/.github/workflows/action-ci.yml@@ -65,7 +65,7 @@ jobs:if: inputs.sdk-contractsuses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: "1.3.14"+ bun-version: "1.4.4"no-cache: true- name: Test Action release contractsif: inputs.sdk-contractsdiff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.ymlindex eb0e94c42..0c65c9989 100644--- a/.github/workflows/node-ci.yml+++ b/.github/workflows/node-ci.yml@@ -203,7 +203,7 @@ jobs:name: Set up Bunuses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: "1.3.14"+ bun-version: "1.4.4"- *install-dependencies- &download-package-for-this-commitname: Download package for this commitdiff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.ymlindex 2fd6dc7f9..1bc1ffe7c 100644--- a/.github/workflows/node-release.yml+++ b/.github/workflows/node-release.yml@@ -84,7 +84,7 @@ jobs:name: Set up Bunuses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: "1.3.14"+ bun-version: "1.4.4"no-cache: true- &setup-release-pnpmdiff --git a/.github/workflows/test-quality.yml b/.github/workflows/test-quality.ymlindex ec2a5ef29..6542fe15b 100644--- a/.github/workflows/test-quality.yml+++ b/.github/workflows/test-quality.yml@@ -112,7 +112,7 @@ jobs:- &set-up-bunuses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: "1.3.14"+ bun-version: "1.4.4"- &install-plugin-dependenciesname: Install dependenciesshell: bashdiff --git a/sdk/typescript/scripts/bun-test-timeout.mts b/sdk/typescript/scripts/bun-test-timeout.mtsindex 608939742..7733bf926 100644--- a/sdk/typescript/scripts/bun-test-timeout.mts+++ b/sdk/typescript/scripts/bun-test-timeout.mts@@ -1,7 +1,7 @@import { parseArgs } from "node:util";-// Keep arities aligned with the pinned Bun's test_params:-// https://github.com/oven-sh/bun/blob/bun-v1.3.14/src/cli/Arguments.zig+// Keep arities aligned with the pinned Bun's TEST_PARAMS.+// https://github.com/oven-sh/bun/blob/bun-v1.4.4/src/runtime/cli/Arguments.rsconst optionalBunOptions = {bail: { type: "string" },changed: { type: "string" },@@ -9,6 +9,7 @@ const optionalBunOptions = {inspect: { type: "string" },"inspect-wait": { type: "string" },"inspect-brk": { type: "string" },+ "disallow-code-generation-from-strings": { type: "string" },config: { type: "string", short: "c" },} as const;@@ -39,6 +40,8 @@ export function bunTestTimeout(testArguments: readonly string[]) {"path-ignore-patterns": { type: "string" },"parallel-delay": { type: "string" },shard: { type: "string" },+ timings: { type: "string" },+ "watch-kill-signal": { type: "string" },preload: { type: "string", short: "r" },require: { type: "string" },import: { type: "string" },@@ -47,6 +50,7 @@ export function bunTestTimeout(testArguments: readonly string[]) {"cpu-prof-interval": { type: "string" },"heap-prof-name": { type: "string" },"heap-prof-dir": { type: "string" },+ "heap-prof-interval": { type: "string" },install: { type: "string" },eval: { type: "string", short: "e" },print: { type: "string", short: "p" },@@ -58,6 +62,11 @@ export function bunTestTimeout(testArguments: readonly string[]) {"dns-result-order": { type: "string" },title: { type: "string" },"unhandled-rejections": { type: "string" },+ "redirect-warnings": { type: "string" },+ "disable-warning": { type: "string" },+ "trace-event-categories": { type: "string" },+ "trace-event-file-pattern": { type: "string" },+ "stack-trace-limit": { type: "string" },"console-depth": { type: "string" },"user-agent": { type: "string" },"cron-title": { type: "string" },diff --git a/sdk/typescript/tests-ts/skeleton.test.ts b/sdk/typescript/tests-ts/skeleton.test.tsindex 7f14f10fc..5a50312be 100644--- a/sdk/typescript/tests-ts/skeleton.test.ts+++ b/sdk/typescript/tests-ts/skeleton.test.ts@@ -434,7 +434,7 @@ describe("TypeScript package skeleton", () => {job.steps!.filter((step) => step.uses?.startsWith("oven-sh/setup-bun@")).map((step) => step.with?.["bun-version"]),- ).toEqual(["1.3.14"]);+ ).toEqual(["1.4.4"]);for (const step of job.steps!) {expect(step.run ?? "").not.toMatch(/--(?:parallel|isolate)(?:[=\s]|$)/u,diff --git a/sdk/typescript/tests-ts/test-shards.test.ts b/sdk/typescript/tests-ts/test-shards.test.tsindex 41df1f2f2..1d88e1b0d 100644--- a/sdk/typescript/tests-ts/test-shards.test.ts+++ b/sdk/typescript/tests-ts/test-shards.test.ts@@ -288,6 +288,7 @@ test.each([[defaultTimeoutMs, ["--test-name-pattern", "--timeout=5000"]],["7000", ["--timeout", "7000", "-t", "--timeout=5000"]],[defaultTimeoutMs, ["--coverage-dir", "--timeout=5000"]],+ [defaultTimeoutMs, ["--timings", "--timeout=5000"]],[defaultTimeoutMs, ["--title", "--timeout=5000"]],["7000", ["--config", "--timeout=7000"]],["7000", ["-c", "--timeout=7000"]],