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(ona): manage the findings service lifecycle (#700)
Kyle Brennanb47df2161d9d
diff --git a/.ona/README.md b/.ona/README.mdnew file mode 100644index 000000000..d79db8b72--- /dev/null+++ b/.ona/README.md@@ -0,0 +1,19 @@+# Findings service in Ona++In the Ona project's Settings, set **Dev Container path** to+`.ona/devcontainer.json` and **Tasks and services configuration path** to+`.ona/automations.yml`. Create a new environment or rebuild its Dev Container+after changing the path. The Ona configuration uses the same image, feature+versions, and install script as the default Dev Container.++The `findings-start` task starts the shared findings image after environment+start/resume or a Dev Container rebuild. It opens port 3000 for the environment+creator. Run `findings-start` or `findings-stop` manually from Ona's task list;+stopping findings keeps its stored data. The existing+`CODEX_SECURITY_FINDINGS_IMAGE` override still selects the image.++Ona's [port proxy](https://ona.com/docs/ona/integrations/ports#host-network-stack)+requires host networking for both the Dev Container and the findings container.+The Ona Compose override supplies that network setting; standalone+`compose.findings.yaml` keeps its loopback binding. Keep the shared and Ona+feature definitions and lockfiles aligned when updating the toolchain.diff --git a/.ona/automations.yml b/.ona/automations.ymlindex bc134aa5c..f8316e5f0 100644--- a/.ona/automations.yml+++ b/.ona/automations.yml@@ -6,6 +6,23 @@ tasks:- manual- prebuild+ findings-start:+ name: Start findings service+ command: >-+ docker compose -f compose.findings.yaml -f .ona/compose.findings.yaml up --detach --no-build findings &&+ ona environment port open 3000 --name findings --admission creator_only+ triggeredBy:+ - manual+ - postDevcontainerStart+ - postEnvironmentStart++ findings-stop:+ name: Stop findings service+ command: >-+ docker compose -f compose.findings.yaml -f .ona/compose.findings.yaml stop findings+ triggeredBy:+ - manual+build:name: Buildcommand: pnpm --dir sdk/typescript run builddiff --git a/.ona/compose.findings.yaml b/.ona/compose.findings.yamlnew file mode 100644index 000000000..0e374bdd4--- /dev/null+++ b/.ona/compose.findings.yaml@@ -0,0 +1,4 @@+services:+ findings:+ network_mode: host+ ports: !reset []diff --git a/.ona/devcontainer-lock.json b/.ona/devcontainer-lock.jsonnew file mode 100644index 000000000..76bf29458--- /dev/null+++ b/.ona/devcontainer-lock.json@@ -0,0 +1,24 @@+{+ "features": {+ "ghcr.io/devcontainers/features/docker-in-docker:4": {+ "version": "4.1.2",+ "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:ad3d6d36d95ee7f880f61f98862257f3e70253d3faef09f86af42fb87ee60429",+ "integrity": "sha256:ad3d6d36d95ee7f880f61f98862257f3e70253d3faef09f86af42fb87ee60429"+ },+ "ghcr.io/devcontainers/features/github-cli:1": {+ "version": "1.1.3",+ "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2",+ "integrity": "sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2"+ },+ "ghcr.io/devcontainers/features/node:2": {+ "version": "2.1.0",+ "resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857",+ "integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857"+ },+ "ghcr.io/devcontainers/features/python:1": {+ "version": "1.8.0",+ "resolved": "ghcr.io/devcontainers/features/python@sha256:fbcad6955caeecc5ad3f7886baf652e25cba5225a6c4c2287c536de2e5607511",+ "integrity": "sha256:fbcad6955caeecc5ad3f7886baf652e25cba5225a6c4c2287c536de2e5607511"+ }+ }+}diff --git a/.ona/devcontainer.json b/.ona/devcontainer.jsonnew file mode 100644index 000000000..0d39e9134--- /dev/null+++ b/.ona/devcontainer.json@@ -0,0 +1,18 @@+{+ "name": "Ona findings",+ // devcontainers/universal publishes a linux/amd64 manifest only, so it cannot+ // run natively on arm64 hosts. base:noble keeps the Ubuntu Noble userland the+ // Ona automations expect and supplies the toolchains through features.+ "image": "mcr.microsoft.com/devcontainers/base:noble",+ "runArgs": ["--network=host"],+ "features": {+ "ghcr.io/devcontainers/features/docker-in-docker:4": { "moby": false },+ "ghcr.io/devcontainers/features/github-cli:1": {},+ "ghcr.io/devcontainers/features/node:2": {+ "version": "22",+ "pnpmVersion": "none"+ },+ "ghcr.io/devcontainers/features/python:1": { "version": "3.12" }+ },+ "onCreateCommand": "sh .devcontainer/install.sh"+}