{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "openai-codex-security--run-a-weekly-codex-security-scan-in-github-actions",
 "repo": "openai/codex-security",
 "repo_url": "https://github.com/openai/codex-security",
 "repo_slug": "openai-codex-security",
 "title": "Run a weekly scan in GitHub Actions",
 "page_title": "How to run a weekly scan in GitHub Actions with Codex Security",
 "summary": "Schedule a repository scan on GitHub-hosted Ubuntu and export results for CI.",
 "who": "A maintainer who wants regular scans without running them by hand.",
 "problem": "Security checks that depend on someone remembering to run them get skipped.",
 "outcome": "A weekly workflow that scans the repository and reports findings without failing the job.",
 "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.md` or see the export guide for SARIF"
 ],
 "agent_prompt": "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.",
 "agents": [
  "codex",
  "claude-code",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Pin the Action to a reviewed commit SHA as the README instructs.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "cost",
   "notice": "The example uses an estimated 5 dollar limit per scan, and requests in progress can exceed the limit."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/openai-codex-security/run-a-weekly-codex-security-scan-in-github-actions/",
 "md": "https://dedupedai.com/use-cases/openai-codex-security/run-a-weekly-codex-security-scan-in-github-actions/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/openai-codex-security--run-a-weekly-codex-security-scan-in-github-actions.json",
 "api_version": "v1"
}
