{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "promptfoo-promptfoo--block-prompt-regressions-in-ci",
 "repo": "promptfoo/promptfoo",
 "repo_url": "https://github.com/promptfoo/promptfoo",
 "repo_slug": "promptfoo-promptfoo",
 "title": "Block prompt regressions in CI",
 "page_title": "How to block prompt regressions in CI with Promptfoo",
 "summary": "Run Promptfoo evals in your CI/CD pipeline and use code scanning on pull requests.",
 "who": "An engineering lead tired of prompt edits silently breaking production behaviour.",
 "problem": "Prompt and model changes ship without tests, so regressions show up as user complaints.",
 "outcome": "A pipeline that runs your evals on every change and flags LLM security issues in pull requests.",
 "steps": [
  "Write your eval config locally and confirm `promptfoo eval` passes",
  "Add Promptfoo to your pipeline as the CI/CD integration docs describe",
  "Turn on code scanning to review pull requests for LLM-related security and compliance issues",
  "Share results with your team from the viewer",
  "Use caching to keep repeated runs fast"
 ],
 "agent_prompt": "Add promptfoo/promptfoo to my <CI system> so every pull request runs `promptfoo eval` on <config> and fails if any test fails. Also set up code scanning for LLM security issues and show me the workflow file.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "CI runs call real model APIs, so budget for the cost per run and cache where you can.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js for npm, or Homebrew, or pip; npx works without installing",
  "API keys for the LLM providers you test, set as environment variables",
  "Only run red teaming against apps you own or are authorised to test"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/promptfoo-promptfoo/block-prompt-regressions-in-ci/",
 "md": "https://dedupedai.com/use-cases/promptfoo-promptfoo/block-prompt-regressions-in-ci/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/promptfoo-promptfoo--block-prompt-regressions-in-ci.json",
 "api_version": "v1"
}
