{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "openai-codex-security--check-only-your-pull-request-changes-with-codex-security",
 "repo": "openai/codex-security",
 "repo_url": "https://github.com/openai/codex-security",
 "repo_slug": "openai-codex-security",
 "title": "Scan only the changes in a branch",
 "page_title": "How to scan only the changes in a branch with Codex Security",
 "summary": "Limit a scan to selected paths or to the commits since a base revision.",
 "who": "A team that wants a focused check on one feature branch instead of the whole repo.",
 "problem": "Whole-repository scans are broad when you only changed a few files.",
 "outcome": "A scan scoped to the paths or diff you chose.",
 "steps": [
  "Install with `npm install --global @openai/codex-security` and sign in with `cs login`",
  "Scan selected paths with `cs scan . --path src --path tests`",
  "Scan committed changes from a base revision with `cs scan . --diff origin/main`",
  "Set an advisory time allowance with `cs scan . --max-time 15`",
  "Browse every option with `cs scan --help`"
 ],
 "agent_prompt": "With openai/codex-security, run `cs scan . --diff origin/main` on my branch and list the findings tied to the changed files.",
 "agents": [
  "codex",
  "claude-code",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README calls the 15 minute value an advisory allowance, not a hard limit.",
 "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": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/openai-codex-security/check-only-your-pull-request-changes-with-codex-security/",
 "md": "https://dedupedai.com/use-cases/openai-codex-security/check-only-your-pull-request-changes-with-codex-security/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--check-only-your-pull-request-changes-with-codex-security.json",
 "api_version": "v1"
}
