cost. The example uses an estimated 5 dollar limit per scan, and requests in progress can exceed the limit.
Who it is forA maintainer who wants regular scans without running them by hand.
The problemSecurity checks that depend on someone remembering to run them get skipped.
The outcomeA weekly workflow that scans the repository and reports findings without failing the job.
What you need first
- Node.js 22.13.0+ within 22.x, or Node.js 24.x or 26.x, and Python 3.10+
- A login with `cs login`, or OPENAI_API_KEY or CODEX_API_KEY in the environment for CI
- A Git repository to scan
Steps
- Add an OpenAI API key as the repository secret
CODEX_SECURITY_API_KEY - Copy the weekly workflow from github-action/examples/repository.yml to
.github/workflows/codex-security.yml - Replace REPLACE_WITH_REVIEWED_COMMIT with the reviewed distribution commit SHA from an Action release
- Open Actions, then Codex Security repository, then Run workflow to try it before the next scheduled run
- Export results for CI with
cs export --scan SCAN_ID --artifact threat-model --output threatmodel.mdor see the export guide for SARIF
Prompt for your agent
Using openai/codex-security, set up the weekly GitHub Actions workflow from github-action/examples/repository.yml in my repo and tell me which secret and commit SHA I still need to fill in.
Caveat. Pin the Action to a reviewed commit SHA as the README instructs.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for openai/codex-security and "Run a weekly scan in GitHub Actions"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer