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

fix(ci): make production dependency audits advisory (#242)

mldangelo-oai68a1dfe58b7c
diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml
index c3b41308d..e4f4d7e55 100644
--- a/.github/workflows/node-ci.yml
+++ b/.github/workflows/node-ci.yml
@@ -62,6 +62,7 @@ jobs:
- name: Audit production dependencies
if: matrix.os == 'ubuntu-latest' && matrix.node == '22.13.0'
+ continue-on-error: true
run: pnpm --dir sdk/typescript run audit:prod
- name: Typecheck
diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml
index 8cb36aae8..e0a8b098c 100644
--- a/.github/workflows/node-release.yml
+++ b/.github/workflows/node-release.yml
@@ -119,6 +119,7 @@ jobs:
run: sfw pnpm --dir sdk/typescript install --frozen-lockfile
- name: Audit production dependencies
+ continue-on-error: true
run: sfw pnpm --dir sdk/typescript run audit:prod
- name: Verify
diff --git a/sdk/typescript/tests-ts/skeleton.test.ts b/sdk/typescript/tests-ts/skeleton.test.ts
index c97fe65e8..7aa952a65 100644
--- a/sdk/typescript/tests-ts/skeleton.test.ts
+++ b/sdk/typescript/tests-ts/skeleton.test.ts
@@ -84,6 +84,19 @@ describe("TypeScript package skeleton", () => {
);
});
+ test("keeps production dependency audits non-blocking in CI and releases", async () => {
+ for (const workflowName of ["node-ci.yml", "node-release.yml"]) {
+ const workflow = await readFile(
+ new URL(`../../../.github/workflows/${workflowName}`, import.meta.url),
+ "utf8",
+ );
+
+ expect(workflow).toMatch(
+ /- name: Audit production dependencies\n(?:\s+if: [^\n]+\n)?\s+continue-on-error: true\n\s+run: (?:sfw )?pnpm --dir sdk\/typescript run audit:prod/u,
+ );
+ }
+ });
+
test("exposes canonical finding and hardening fields with public types", () => {
const finding = {} as Finding;
const scan = {} as ScanRecord;