DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a weekly scan in GitHub Actions with Codex Security

Schedule a repository scan on GitHub-hosted Ubuntu and export results for CI.

Short answer: Add an OpenAI API key as the repository secret CODEX_SECURITY_API_KEY; then 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. All steps.

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

  1. Add an OpenAI API key as the repository secret CODEX_SECURITY_API_KEY
  2. Copy the weekly workflow from github-action/examples/repository.yml to .github/workflows/codex-security.yml
  3. Replace REPLACE_WITH_REVIEWED_COMMIT with the reviewed distribution commit SHA from an Action release
  4. Open Actions, then Codex Security repository, then Run workflow to try it before the next scheduled run
  5. Export results for CI with cs export --scan SCAN_ID --artifact threat-model --output threatmodel.md or 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer