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

chore(deps): update evaluation SDK and Action artifact client (#1652)

dependabot[bot]23fa14cc281b
diff --git a/evals/triage-finding/package.json b/evals/triage-finding/package.json
index eac234688..2f9f39377 100644
--- a/evals/triage-finding/package.json
+++ b/evals/triage-finding/package.json
@@ -31,7 +31,7 @@
},
"dependencies": {
"@openai/codex-sdk": "0.162.1",
- "@opencode-ai/sdk": "1.18.34",
+ "@opencode-ai/sdk": "1.18.35",
"promptfoo": "0.123.1"
}
}
diff --git a/evals/triage-finding/pnpm-lock.yaml b/evals/triage-finding/pnpm-lock.yaml
index 1aeffe278..c3072b8a8 100644
--- a/evals/triage-finding/pnpm-lock.yaml
+++ b/evals/triage-finding/pnpm-lock.yaml
@@ -8,7 +8,7 @@ overrides:
'@openai/codex': 0.162.1
'@openai/codex-sdk': 0.162.1
'@openai/[email protected]>smol-toml': 1.9.0
- '@opencode-ai/sdk': 1.18.34
+ '@opencode-ai/sdk': 1.18.35
[email protected]>axios: 1.20.0
[email protected]>basic-ftp: 6.2.1
[email protected]>@simple-git/args-pathspec: 1.0.4
@@ -26,8 +26,8 @@ importers:
specifier: 0.162.1
version: 0.162.1
'@opencode-ai/sdk':
- specifier: 1.18.34
- version: 1.18.34
+ specifier: 1.18.35
+ version: 1.18.35
promptfoo:
specifier: 0.123.1
version: 0.123.1(patch_hash=9b31e07e280074178b325d59241d9bfd2cd4a94238bfc5fc9bc07daf43f4d7a8)(@aws-sdk/[email protected])(@aws-sdk/[email protected])(@cfworker/[email protected])(@smithy/[email protected])(@smithy/[email protected])(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])
@@ -1402,8 +1402,8 @@ packages:
cpu: [x64]
os: [win32]
- '@opencode-ai/[email protected]':
- resolution: {integrity: sha512-R9QWUpcngtdQ6FCixz7NC6n1WsSho6CEuRUzYHz/CzZcp3miSklDzXkm0oDwXVCnuEu+ANoeM0f6RDp51kOMzQ==}
+ '@opencode-ai/[email protected]':
+ resolution: {integrity: sha512-cp3IFKwnqgeUbflrrwz/WmG/dALVyM2k0LA1aqCvWe58Tu4utNTNw+BwZzQEML1HxDaLrIB+Fc4Ztb8S16Ijcw==}
'@opentelemetry/[email protected]':
resolution: {integrity: sha512-9mb1If+IF6u0ZVXkHQ6ogEae5HwA6ajIVUgpSDQyRASxft6BSXHvBvPooRle3yFN/fKnCdSOnuu0OC3PLcF6+g==}
@@ -5951,7 +5951,7 @@ snapshots:
'@openai/[email protected]':
optional: true
- '@opencode-ai/[email protected]':
+ '@opencode-ai/[email protected]':
dependencies:
cross-spawn: 7.0.6
@@ -8419,7 +8419,7 @@ snapshots:
'@openai/agents': 0.11.8(@aws-sdk/[email protected])(@cfworker/[email protected])(@smithy/[email protected])(@smithy/[email protected])([email protected])([email protected])
'@openai/codex-sdk': 0.162.1
'@openai/codex-security': 0.1.31(@types/[email protected])([email protected])
- '@opencode-ai/sdk': 1.18.34
+ '@opencode-ai/sdk': 1.18.35
'@playwright/browser-chromium': 1.63.0
'@rollup/rollup-linux-x64-gnu': 4.63.1
'@slack/web-api': 8.1.1
diff --git a/github-action/dist/index.cjs b/github-action/dist/index.cjs
index 7b683c725..1a745226e 100644
--- a/github-action/dist/index.cjs
+++ b/github-action/dist/index.cjs
@@ -23195,7 +23195,7 @@ var require_package = __commonJS({
"node_modules/@actions/artifact/package.json"(exports2, module2) {
module2.exports = {
name: "@actions/artifact",
- version: "6.2.1",
+ version: "6.3.1",
preview: true,
description: "Actions artifact lib",
keywords: [
@@ -23242,26 +23242,27 @@ var require_package = __commonJS({
url: "https://github.com/actions/toolkit/issues"
},
dependencies: {
- "@actions/core": "^3.0.0",
- "@actions/github": "^9.0.0",
- "@actions/http-client": "^4.0.0",
- "@azure/storage-blob": "^12.30.0",
+ "@actions/core": "^3.0.1",
+ "@actions/github": "^9.1.1",
+ "@actions/http-client": "^4.0.1",
+ "@azure/storage-blob": "^12.31.0",
"@octokit/core": "^7.0.6",
"@octokit/plugin-request-log": "^6.0.0",
- "@octokit/plugin-retry": "^8.0.0",
- "@octokit/request": "^10.0.7",
+ "@octokit/plugin-retry": "^8.1.0",
+ "@octokit/request": "^10.0.8",
"@octokit/request-error": "^7.1.0",
- "@protobuf-ts/plugin": "^2.2.3-alpha.1",
- "@protobuf-ts/runtime": "^2.9.4",
+ "@protobuf-ts/runtime": "^2.11.1",
+ "@protobuf-ts/runtime-rpc": "^2.11.1",
archiver: "^7.0.1",
"jwt-decode": "^4.0.0",
"unzip-stream": "^0.3.1"
},
devDependencies: {
+ "@protobuf-ts/plugin": "^2.11.1",
"@types/archiver": "^7.0.0",
"@types/unzip-stream": "^0.3.4",
- typedoc: "^0.28.16",
- "typedoc-plugin-markdown": "^4.9.0",
+ typedoc: "^0.28.19",
+ "typedoc-plugin-markdown": "^4.11.0",
typescript: "^5.9.3"
},
overrides: {
@@ -58171,8 +58172,9 @@ var __awaiter6 = function(thisArg, _arguments, P, generator) {
var ArtifactHttpClient = class {
constructor(userAgent2, maxAttempts, baseRetryIntervalMilliseconds, retryMultiplier) {
this.maxAttempts = 5;
- this.baseRetryIntervalMilliseconds = 3e3;
+ this.baseRetryIntervalMilliseconds = 8e3;
this.retryMultiplier = 1.5;
+ this.retryTimeoutMilliseconds = 12e4;
const token = getRuntimeToken();
this.baseUrl = getResultsServiceUrl();
if (maxAttempts) {
@@ -58212,11 +58214,16 @@ var ArtifactHttpClient = class {
let attempt = 0;
let errorMessage = "";
let rawBody = "";
+ let totalRetryWaitMilliseconds = 0;
while (attempt < this.maxAttempts) {
let isRetryable = false;
+ let retryAfterSeconds;
try {
const response = yield operation();
const statusCode = response.message.statusCode;
+ if (statusCode === HttpCodes.TooManyRequests) {
+ retryAfterSeconds = this.getRetryAfterSeconds(response);
+ }
rawBody = yield response.readBody();
debug(`[Response] - ${response.message.statusCode}`);
debug(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
@@ -58253,9 +58260,13 @@ var ArtifactHttpClient = class {
if (attempt + 1 === this.maxAttempts) {
throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${errorMessage}`);
}
- const retryTimeMilliseconds = this.getExponentialRetryTimeMilliseconds(attempt);
+ const retryTimeMilliseconds = retryAfterSeconds !== void 0 ? retryAfterSeconds * 1e3 : this.getExponentialRetryTimeMilliseconds(attempt);
+ if (totalRetryWaitMilliseconds + retryTimeMilliseconds > this.retryTimeoutMilliseconds) {
+ throw new Error(`Retry wait of ${retryTimeMilliseconds} ms would exceed the maximum total retry wait of ${this.retryTimeoutMilliseconds} ms: ${errorMessage}`);
+ }
info(`Attempt ${attempt + 1} of ${this.maxAttempts} failed with error: ${errorMessage}. Retrying request in ${retryTimeMilliseconds} ms...`);
yield this.sleep(retryTimeMilliseconds);
+ totalRetryWaitMilliseconds += retryTimeMilliseconds;
attempt++;
}
throw new Error(`Request failed`);
@@ -58278,6 +58289,17 @@ var ArtifactHttpClient = class {
];
return retryableStatusCodes.includes(statusCode);
}
+ // Only positive integer seconds are supported, not HTTP-date values.
+ getRetryAfterSeconds(response) {
+ var _a;
+ const header = response.message.headers["retry-after"];
+ const value = (_a = Array.isArray(header) ? header[0] : header) === null || _a === void 0 ? void 0 : _a.trim();
+ if (value === void 0 || !/^\d+$/.test(value)) {
+ return void 0;
+ }
+ const parsed = parseInt(value, 10);
+ return !isNaN(parsed) && parsed > 0 ? parsed : void 0;
+ }
sleep(milliseconds) {
return __awaiter6(this, void 0, void 0, function* () {
return new Promise((resolve7) => setTimeout(resolve7, milliseconds));
diff --git a/github-action/package-lock.json b/github-action/package-lock.json
index 6536a941c..3ccbd40aa 100644
--- a/github-action/package-lock.json
+++ b/github-action/package-lock.json
@@ -8,7 +8,7 @@
"name": "codex-security-action",
"version": "0.2.0",
"dependencies": {
- "@actions/artifact": "6.2.1",
+ "@actions/artifact": "6.3.1",
"@actions/core": "3.0.1",
"@actions/io": "3.0.2"
},
@@ -25,22 +25,22 @@
}
},
"node_modules/@actions/artifact": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/@actions/artifact/-/artifact-6.2.1.tgz",
- "integrity": "sha512-sJGH0mhEbEjBCw7o6SaLhUU66u27aFW8HTfkIb5Tk2/Wy0caUDc+oYQEgnuFN7a0HCpAbQyK0U6U7XUJDgDWrw==",
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/@actions/artifact/-/artifact-6.3.1.tgz",
+ "integrity": "sha512-DBXgdB9T4yj2KSe0tFg+MTi9T5se+16bdrFQh+3Y6Nq1lZ3gYQk1BjHoTof+7Zf36bEAlfVMf+8ifRKeyGJugQ==",
"license": "MIT",
"dependencies": {
- "@actions/core": "^3.0.0",
- "@actions/github": "^9.0.0",
- "@actions/http-client": "^4.0.0",
- "@azure/storage-blob": "^12.30.0",
+ "@actions/core": "^3.0.1",
+ "@actions/github": "^9.1.1",
+ "@actions/http-client": "^4.0.1",
+ "@azure/storage-blob": "^12.31.0",
"@octokit/core": "^7.0.6",
"@octokit/plugin-request-log": "^6.0.0",
- "@octokit/plugin-retry": "^8.0.0",
- "@octokit/request": "^10.0.7",
+ "@octokit/plugin-retry": "^8.1.0",
+ "@octokit/request": "^10.0.8",
"@octokit/request-error": "^7.1.0",
- "@protobuf-ts/plugin": "^2.2.3-alpha.1",
- "@protobuf-ts/runtime": "^2.9.4",
+ "@protobuf-ts/runtime": "^2.11.1",
+ "@protobuf-ts/runtime-rpc": "^2.11.1",
"archiver": "^7.0.1",
"jwt-decode": "^4.0.0",
"unzip-stream": "^0.3.1"
@@ -308,36 +308,6 @@
"node": ">=22.0.0"
}
},
- "node_modules/@bufbuild/protobuf": {
- "version": "2.15.0",
- "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.15.0.tgz",
- "integrity": "sha512-DAheWUkVr/SJTWCc+lg9dhY0eN4SaWlf4+bG1KzHeXbnqt0AfB/NX0Z+VunGlM1ki1B4zVvye27MpKh/svySUA==",
- "license": "(Apache-2.0 AND BSD-3-Clause)"
- },
- "node_modules/@bufbuild/protoplugin": {
- "version": "2.15.0",
- "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-2.15.0.tgz",
- "integrity": "sha512-vZhRoqB/jTHATqItRvJQf1zbxdrGRRhiusGty4+lKcfEFODG0PMXky2Ezv4WHHS6oSxq+5qShITuE7K1/82SuQ==",
- "license": "Apache-2.0",
- "dependencies": {
- "@bufbuild/protobuf": "2.15.0",
- "@typescript/vfs": "^1.6.2",
- "typescript": "5.4.5"
- }
- },
- "node_modules/@bufbuild/protoplugin/node_modules/typescript": {
- "version": "5.4.5",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
- "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
- "license": "Apache-2.0",
- "bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
- },
- "engines": {
- "node": ">=14.17"
- }
- },
"node_modules/@esbuild/aix-ppc64": {
"version": "0.28.2",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
@@ -1021,46 +991,6 @@
"node": ">=14"
}
},
- "node_modules/@protobuf-ts/plugin": {
- "version": "2.11.1",
- "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.11.1.tgz",
- "integrity": "sha512-HyuprDcw0bEEJqkOWe1rnXUP0gwYLij8YhPuZyZk6cJbIgc/Q0IFgoHQxOXNIXAcXM4Sbehh6kjVnCzasElw1A==",
- "license": "Apache-2.0",
- "dependencies": {
- "@bufbuild/protobuf": "^2.4.0",
- "@bufbuild/protoplugin": "^2.4.0",
- "@protobuf-ts/protoc": "^2.11.1",
- "@protobuf-ts/runtime": "^2.11.1",
- "@protobuf-ts/runtime-rpc": "^2.11.1",
- "typescript": "^3.9"
- },
- "bin": {
- "protoc-gen-dump": "bin/protoc-gen-dump",
- "protoc-gen-ts": "bin/protoc-gen-ts"
- }
- },
- "node_modules/@protobuf-ts/plugin/node_modules/typescript": {
- "version": "3.9.10",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz",
- "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
- "license": "Apache-2.0",
- "bin": {
- "tsc": "bin/tsc",
- "tsserver": "bin/tsserver"
- },
- "engines": {
- "node": ">=4.2.0"
- }
- },
- "node_modules/@protobuf-ts/protoc": {
- "version": "2.11.1",
- "resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.11.1.tgz",
- "integrity": "sha512-mUZJaV0daGO6HUX90o/atzQ6A7bbN2RSuHtdwo8SSF2Qoe3zHwa4IHyCN1evftTeHfLmdz+45qo47sL+5P8nyg==",
- "license": "Apache-2.0",
- "bin": {
- "protoc": "protoc.js"
- }
- },
"node_modules/@protobuf-ts/runtime": {
"version": "2.11.1",
"resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.11.1.tgz",
@@ -1093,6 +1023,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1109,6 +1040,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1125,6 +1057,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1141,6 +1074,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1157,6 +1091,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1173,6 +1108,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1189,6 +1125,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1205,6 +1142,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1221,6 +1159,7 @@
"cpu": [
"mips64el"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1237,6 +1176,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1253,6 +1193,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1269,6 +1210,7 @@
"cpu": [
"s390x"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1285,6 +1227,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1301,6 +1244,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1317,6 +1261,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1333,6 +1278,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1349,6 +1295,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1365,6 +1312,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1381,6 +1329,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1397,6 +1346,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -1406,18 +1356,6 @@
"node": ">=16.20.0"
}
},
- "node_modules/@typescript/vfs": {
- "version": "1.6.4",
- "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.4.tgz",
- "integrity": "sha512-PJFXFS4ZJKiJ9Qiuix6Dz/OwEIqHD7Dme1UwZhTK11vR+5dqW2ACbdndWQexBzCx+CPuMe5WBYQWCsFyGlQLlQ==",
- "license": "MIT",
- "dependencies": {
- "debug": "^4.4.3"
- },
- "peerDependencies": {
- "typescript": "*"
- }
- },
"node_modules/@typespec/ts-http-runtime": {
"version": "0.3.9",
"resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.9.tgz",
@@ -2647,6 +2585,7 @@
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
"integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
+ "dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc"
diff --git a/github-action/package.json b/github-action/package.json
index af5620e16..10b8d5794 100644
--- a/github-action/package.json
+++ b/github-action/package.json
@@ -19,7 +19,7 @@
"validate": "npm run typecheck && npm test && npm run check-metadata && npm run check-docs && npm run check-dist"
},
"dependencies": {
- "@actions/artifact": "6.2.1",
+ "@actions/artifact": "6.3.1",
"@actions/core": "3.0.1",
"@actions/io": "3.0.2"
},