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(ci): share the pinned Bun version (#2422)
Michael D'Angelo9e38dd308476
diff --git a/.bun-version b/.bun-versionnew file mode 100644index 000000000..1c99cf0e8--- /dev/null+++ b/.bun-version@@ -0,0 +1 @@+1.4.4diff --git a/.devcontainer/install.sh b/.devcontainer/install.shindex eff90fc15..7c1e87228 100644--- a/.devcontainer/install.sh+++ b/.devcontainer/install.sh@@ -14,8 +14,8 @@ COREPACK_ENABLE_DOWNLOAD_PROMPT=0export 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+bun_version=$(tr -d '\r' < .bun-version)+npm install --global "bun@${bun_version:?empty .bun-version}" --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 1e0a04a6e..ae52c2445 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.4.4"+ bun-version-file: .bun-versionno-cache: true- name: Test Action release contractsif: inputs.sdk-contractsdiff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.ymlindex 0c65c9989..32f39fa21 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.4.4"+ bun-version-file: .bun-version- *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 1bc1ffe7c..fd689ecce 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.4.4"+ bun-version-file: .bun-versionno-cache: true- &setup-release-pnpmdiff --git a/.github/workflows/test-quality.yml b/.github/workflows/test-quality.ymlindex 6542fe15b..d960f5dc2 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.4.4"+ bun-version-file: .bun-version- &install-plugin-dependenciesname: Install dependenciesshell: bashdiff --git a/sdk/typescript/TESTING.md b/sdk/typescript/TESTING.mdindex 68c2ccaa9..7a60f2de7 100644--- a/sdk/typescript/TESTING.md+++ b/sdk/typescript/TESTING.md@@ -2,7 +2,7 @@## Install dependencies-Use [the repository’s pinned pnpm version](../../package.json) and [CI’s Bun version](../../.github/workflows/node-ci.yml). From the repository root, enter the SDK directory and install both packages:+Use [the repository’s pinned pnpm version](../../package.json) and [CI’s Bun version](../../.bun-version). From the repository root, enter the SDK directory and install both packages:```shcd sdk/typescriptdiff --git a/sdk/typescript/tests-ts/skeleton.test.ts b/sdk/typescript/tests-ts/skeleton.test.tsindex 5a50312be..b807e8d0c 100644--- a/sdk/typescript/tests-ts/skeleton.test.ts+++ b/sdk/typescript/tests-ts/skeleton.test.ts@@ -431,10 +431,8 @@ describe("TypeScript package skeleton", () => {quality.jobs["mutation"]!,]) {expect(- job- .steps!.filter((step) => step.uses?.startsWith("oven-sh/setup-bun@"))- .map((step) => step.with?.["bun-version"]),- ).toEqual(["1.4.4"]);+ job.steps!.filter(({ uses }) => uses?.startsWith("oven-sh/setup-bun@")),+ ).toMatchObject([{ with: { "bun-version-file": ".bun-version" } }]);for (const step of job.steps!) {expect(step.run ?? "").not.toMatch(/--(?:parallel|isolate)(?:[=\s]|$)/u,