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: configure development environment (#697)

Kyle Brennan2674286392f5
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 000000000..5ebdf0383
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,4 @@
+{
+ "name": "Ona",
+ "image": "mcr.microsoft.com/devcontainers/universal:4.0.1-noble"
+}
diff --git a/.ona/automations.yml b/.ona/automations.yml
new file mode 100644
index 000000000..a9355768d
--- /dev/null
+++ b/.ona/automations.yml
@@ -0,0 +1,37 @@
+tasks:
+ install:
+ name: Install dependencies
+ command: |
+ npm install --global [email protected] [email protected] --no-audit --no-fund
+ if ! command -v rg >/dev/null 2>&1; then
+ sudo apt-get update \
+ -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/ubuntu.sources \
+ -o Dir::Etc::sourceparts=-
+ sudo apt-get install --yes ripgrep
+ fi
+ pnpm --dir sdk/typescript install --frozen-lockfile
+ npm ci --prefix plugins/codex-security/mcp-app --no-audit --no-fund
+ python -m pip install --disable-pip-version-check --no-input -e 'plugins/codex-security[test]'
+ triggeredBy:
+ - manual
+ - prebuild
+
+ build:
+ name: Build
+ command: pnpm --dir sdk/typescript run build
+ dependsOn:
+ - install
+ triggeredBy:
+ - manual
+ - prebuild
+
+ test:
+ name: Run tests
+ command: |
+ pnpm --dir sdk/typescript run test
+ pnpm --dir sdk/typescript run test:mcp
+ python -m pytest plugins/codex-security/tests -q
+ dependsOn:
+ - build
+ triggeredBy:
+ - manual