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(release): align Action version with CLI 0.2.0 (#1339)

mldangelo-oai79b19ce04419
diff --git a/github-action/package-lock.json b/github-action/package-lock.json
index 94faf0d7e..453ae1f1e 100644
--- a/github-action/package-lock.json
+++ b/github-action/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "codex-security-action",
- "version": "0.1.0",
+ "version": "0.2.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "codex-security-action",
- "version": "0.1.0",
+ "version": "0.2.0",
"dependencies": {
"@actions/artifact": "6.2.1",
"@actions/core": "3.0.1",
diff --git a/github-action/package.json b/github-action/package.json
index b59f3d2ec..ffe0ad2c6 100644
--- a/github-action/package.json
+++ b/github-action/package.json
@@ -1,6 +1,6 @@
{
"name": "codex-security-action",
- "version": "0.1.0",
+ "version": "0.2.0",
"private": true,
"type": "module",
"description": "Run Codex Security in GitHub Actions with explicit scope, budgets, and scan health reporting",
diff --git a/github-action/scripts/build.mjs b/github-action/scripts/build.mjs
index 986cf87ab..a3ad6c0f8 100644
--- a/github-action/scripts/build.mjs
+++ b/github-action/scripts/build.mjs
@@ -12,6 +12,7 @@ const bundle = await build({
bundle: true, write: false, sourcemap: false, legalComments: 'eof', metafile: true,
});
const generated = new Map(bundle.outputFiles.map(file => [relative(root, file.path), Buffer.from(file.contents)]));
+const actionVersion = JSON.parse(await readFile(resolve(root, 'package.json'), 'utf8')).version;
const lock = JSON.parse(await readFile(resolve(root, 'package-lock.json'), 'utf8'));
const runtimeManifest = JSON.parse(await readFile(resolve(root, 'runtime/package.json'), 'utf8'));
const cliVersion = runtimeManifest.dependencies['@openai/codex-security'];
@@ -29,7 +30,7 @@ const sourceFiles = (await readdir(resolve(root, 'src'))).filter(name => name.en
const sourceHash = createHash('sha256');
for (const file of sourceFiles) sourceHash.update(file).update('\0').update(await readFile(resolve(root, 'src', file))).update('\0');
const manifest = {
- actionVersion: '0.1.0', status: 'unreleased', nodeRuntime: 'node24', platform: 'linux-x64', cliVersion,
+ actionVersion, status: 'unreleased', nodeRuntime: 'node24', platform: 'linux-x64', cliVersion,
sourceSha256: sourceHash.digest('hex'), actionLockSha256: hash(await readFile(resolve(root, 'package-lock.json'))),
runtimeLockSha256: hash(cliLockBytes),
buildInputs: Object.fromEntries(await Promise.all(['../action.yml', 'package.json', 'runtime/package.json', 'scripts/build.mjs'].map(async path => [path, {sha256: hash(await readFile(resolve(root, path)))}]))),
@@ -37,7 +38,7 @@ const manifest = {
};
const sbom = {
bomFormat: 'CycloneDX', specVersion: '1.6', version: 1,
- metadata: {component: {type: 'application', name: 'codex-security-action', version: '0.1.0'}},
+ metadata: {component: {type: 'application', name: 'codex-security-action', version: actionVersion}},
components: [...components(lock.packages, 'action'), ...components(cliLock.packages, 'cli')],
};
if (!check) await mkdir(resolve(root, 'dist'), {recursive: true});