Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.
Coming soon. This feature is under active development. Contact us for early access.
The CI/CD Security Gate will run automated adversarial tests against your security configuration on every pull request.Available today: use the CLI in any CI pipeline. Check your prompt templates against the bundled local rules, with no API key, and check the integration against the live API:
Each exits 2 when it finds a problem, which fails the CI step. The CI/CD Integration section of the CLI page shows both in GitHub Actions and GitLab CI.See Best Practices for integrating PromptGuard into your deployment workflow.
Last modified on November 8, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"PromptGuard","description":"AI security firewall. Protect LLM applications from prompt injection, data leaks, jailbreaks, and PII exposure.","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1D4ED8"},"logo":{"light":"https://mintcdn.com/promptguard/sBVZPqZYn263LC-L/logo/light.svg?fit=max\u0026auto=format\u0026n=sBVZPqZYn263LC-L\u0026q=85\u0026s=8bf0b3b1f4e6fcd571bd4fefce2cda92","dark":"https://mintcdn.com/promptguard/sBVZPqZYn263LC-L/logo/dark.svg?fit=max\u0026auto=format\u0026n=sBVZPqZYn263LC-L\u0026q=85\u0026s=5448b21f857c43e1208ae10e3d2b09e7","href":"https://promptguard.co"},"favicon":{"light":"https://mintcdn.com/promptguard/spb60-yqv9beaOFS/favicon.ico?fit=max\u0026auto=format\u0026n=spb60-yqv9beaOFS\u0026q=85\u0026s=ccf87036090bd89bb275dd47d8e66cac","dark":"https://mintcdn.com/promptguard/spb60-yqv9beaOFS/favicon.ico?fit=max\u0026auto=format\u0026n=spb60-yqv9beaOFS\u0026q=85\u0026s=ccf87036090bd89bb275dd47d8e66cac"},"api":{"playground":{"display":"interactive"},"mdx":{"server":"https://api.promptguard.co"}},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://promptguard.co/download","label":"Download"},{"href":"https://promptguard.co/contact","label":"Support"}],"primary":{"type":"button","label":"Get API Key","href":"https://app.promptguard.co/register?next=/dashboard/api-keys"}},"footer":{"socials":{"twitter":"https://x.com/PromptGuardco","linkedin":"https://www.linkedin.com/company/promptguardco","youtube":"https://www.youtube.com/@promptguardhq","github":"https://github.com/promptguardhq"},"links":[{"items":[{"label":"Dashboard","href":"https://app.promptguard.co"},{"label":"Download Desktop Agent","href":"https://promptguard.co/download"},{"label":"Pricing","href":"https://promptguard.co/pricing"},{"label":"Changelog","href":"/changelog"}]},{"items":[{"label":"Quick Start","href":"/quickstart"},{"label":"API Reference","href":"/api-reference/introduction"},{"label":"Python SDK","href":"/guides/python-sdk"},{"label":"Node.js SDK","href":"/guides/node-sdk"},{"label":"CLI","href":"/tools/cli"},{"label":"MCP Server","href":"/tools/mcp"},{"label":"VS Code Extension","href":"/tools/vscode"},{"label":"Video Tutorials","href":"/video-tutorials"}]},{"items":[{"label":"Blog","href":"https://promptguard.co/blog"},{"label":"Support","href":"https://promptguard.co/contact"},{"label":"Terms","href":"https://promptguard.co/terms"},{"label":"Privacy","href":"https://promptguard.co/privacy"}]},{"items":[{"label":"llms.txt","href":"https://docs.promptguard.co/llms.txt"},{"label":"llms-full.txt","href":"https://docs.promptguard.co/llms-full.txt"}]}]},"search":{},"seo":{"metatags":{"og:type":"website","og:site_name":"PromptGuard Docs"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"contextual":{"options":["copy","chatgpt","claude","perplexity","add-mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"rectangle-terminal","href":"https://app.promptguard.co"},{"anchor":"Blog","icon":"newspaper","href":"https://promptguard.co/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"promptguard","hasAudioNarration":false,"actualSubdomain":"promptguard","customDomains":["docs.promptguard.co"],"gitSource":{"type":"github","owner":"promptguardhq","repo":"promptguard","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae67b21a8f9aedbcd15e200"},"entitlements":{},"buildId":"6b029e1d0d7e8ddc26381f69","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Documentation","count":116},{"language":"default","tag":"API Reference","count":73},{"language":"default","tag":"Integrations","count":22},{"language":"default","tag":"Shadow AI","count":14},{"language":"default","tag":"LLM Providers","count":13},{"language":"default","tag":"Core Concepts","count":13},{"language":"default","tag":"Platform","count":12},{"language":"default","tag":"Resources","count":11},{"language":"default","tag":"Gateway","count":9},{"language":"default","tag":"Going to Production","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#banner{background:linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #3b82f6 100%)}#banner a{color:#93c5fd;text-decoration:underline;text-underline-offset:2px}#banner a:hover{color:#bfdbfe}"}]}
{"page":{"pagePath":"tools/ci-cd-security-gate","slug":"/tools/ci-cd-security-gate","pageMetadata":{"title":"CI/CD Security Gate","description":"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.","type":"explanation","href":"/tools/ci-cd-security-gate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Coming soon.`}),` This feature is under active development. `,_jsx(_components.a,{href:`https://promptguard.co/contact`,children:`Contact us`}),` for early access.`]})}),`\n`,_jsx(_components.p,{children:`The CI/CD Security Gate will run automated adversarial tests against your security configuration on every pull request.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Available today:`}),` use the `,_jsx(_components.a,{href:`/tools/cli`,children:`CLI`}),` in any CI pipeline. Check your prompt templates against the bundled local rules, with no API key, and check the integration against the live API:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`promptguard`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scan`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --offline`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` prompts/system.txt`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`promptguard`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` verify`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Each exits `,_jsx(_components.code,{children:`2`}),` when it finds a problem, which fails the CI step. The `,_jsx(_components.strong,{children:`CI/CD Integration`}),` section of the `,_jsx(_components.a,{href:`/tools/cli`,children:`CLI page`}),` shows both in GitHub Actions and GitLab CI.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/production/best-practices`,children:`Best Practices`}),` for integrating PromptGuard into your deployment workflow.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"CI/CD Security Gate","description":"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.","type":"explanation","href":"/tools/ci-cd-security-gate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"promptguard","siteName":"PromptGuard","title":"CI/CD Security Gate - PromptGuard","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-08T15:16:46.693Z","gitLastModified":"2026-11-08T15:10:11.000Z","originalFileLocation":"tools/ci-cd-security-gate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.\">\u003cmeta data-mint-head name=\"application-name\" content=\"PromptGuard\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CI/CD Security Gate - PromptGuard\">\u003cmeta data-mint-head property=\"og:description\" content=\"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PromptGuard Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.promptguard.co/tools/ci-cd-security-gate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://promptguard.mintlify.site/_mintlify/api/og/v2?division=Roadmap+%2F+Preview\u0026amp;title=CI%2FCD+Security+Gate\u0026amp;description=Gate+every+pull+request+on+AI+security+tests%2C+run+PromptGuard+red-team+checks+in+CI+and+block+merges+that+regress+security.+Coming+soon.\u0026amp;theme=e6f5a1cb5aa0e419d003f7b9\u0026amp;signature=65cceef6b1d8fa2128bc481747dc631d224d676a3cee15485cd69272325b2df4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"CI/CD Security Gate - PromptGuard\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://promptguard.mintlify.site/_mintlify/api/og/v2?division=Roadmap+%2F+Preview\u0026amp;title=CI%2FCD+Security+Gate\u0026amp;description=Gate+every+pull+request+on+AI+security+tests%2C+run+PromptGuard+red-team+checks+in+CI+and+block+merges+that+regress+security.+Coming+soon.\u0026amp;theme=e6f5a1cb5aa0e419d003f7b9\u0026amp;signature=65cceef6b1d8fa2128bc481747dc631d224d676a3cee15485cd69272325b2df4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/promptguard/qMghc8kofYAB8Q5A/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PromptGuard\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.promptguard.co/tools/ci-cd-security-gate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tools/ci-cd-security-gate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.promptguard.co/#organization\",\"name\":\"PromptGuard\",\"url\":\"https://docs.promptguard.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/promptguard/sBVZPqZYn263LC-L/logo/light.svg?fit=max\u0026auto=format\u0026n=sBVZPqZYn263LC-L\u0026q=85\u0026s=8bf0b3b1f4e6fcd571bd4fefce2cda92\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.promptguard.co#website\",\"name\":\"PromptGuard\",\"url\":\"https://docs.promptguard.co\",\"publisher\":{\"@id\":\"https://docs.promptguard.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.promptguard.co/tools/ci-cd-security-gate#webpage\",\"url\":\"https://docs.promptguard.co/tools/ci-cd-security-gate\",\"name\":\"CI/CD Security Gate\",\"description\":\"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.\",\"dateModified\":\"2026-11-08T15:10:11.000Z\",\"isPartOf\":{\"@id\":\"https://docs.promptguard.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.promptguard.co/tools/ci-cd-security-gate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.promptguard.co/tools/ci-cd-security-gate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PromptGuard\",\"item\":\"https://docs.promptguard.co\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CI/CD Security Gate\",\"item\":\"https://docs.promptguard.co/tools/ci-cd-security-gate\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.promptguard.co/tools/ci-cd-security-gate#article\",\"headline\":\"CI/CD Security Gate\",\"name\":\"CI/CD Security Gate\",\"description\":\"Gate every pull request on AI security tests, run PromptGuard red-team checks in CI and block merges that regress security. Coming soon.\",\"url\":\"https://docs.promptguard.co/tools/ci-cd-security-gate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.promptguard.co/tools/ci-cd-security-gate#webpage\"},\"dateModified\":\"2026-11-08T15:10:11.000Z\",\"publisher\":{\"@id\":\"https://docs.promptguard.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.promptguard.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PromptGuard\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PromptGuard\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tools/ci-cd-security-gate.md","siteName":"PromptGuard","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"rectangle-terminal","href":"https://app.promptguard.co"},{"anchor":"Blog","icon":"newspaper","href":"https://promptguard.co/blog"}]},"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"PromptGuard","mode":"wide","href":""},{"title":"Why PromptGuard?","href":"/why-promptguard"},{"title":"Quickstart","mode":"wide","href":"/quickstart"},{"title":"Video tutorials","href":"/video-tutorials"}]},{"group":"Paths","icon":"route","pages":[{"title":"Security Admin Path","sidebarTitle":"Security admin","href":"/guides/security-admin"},{"title":"Evaluate PromptGuard as a Developer","sidebarTitle":"Evaluate: developer","href":"/guides/evaluate-developer"},{"title":"Evaluate Shadow AI","sidebarTitle":"Evaluate: Shadow AI","href":"/guides/evaluate-shadow-ai"},{"title":"Evaluate as an MSP","sidebarTitle":"Evaluate: MSP","href":"/guides/evaluate-msp"}]},{"group":"Core Concepts","icon":"lightbulb","pages":[{"title":"Security Overview","mode":"wide","href":"/security/overview"},{"title":"What Detection Can and Cannot Do","href":"/security/detection-limits"},{"title":"Threat Detection","href":"/security/threat-detection"},{"title":"How detection decides","href":"/security/how-detection-works"},{"group":"Security Policies","pages":[{"title":"Policy Presets","href":"/security/policy-presets"},{"title":"Write custom security rules","sidebarTitle":"Custom Security Rules","href":"/security/custom-rules"},{"title":"Manage guardrails as code","sidebarTitle":"Policy-as-Code","href":"/security/policy-as-code"},{"title":"When a Policy Change Takes Effect","href":"/security/policy-changes"}]},{"title":"Validate MCP tool calls","sidebarTitle":"MCP Server Security","href":"/security/mcp-security"},{"title":"Analyse a full agent run","sidebarTitle":"Agent Trace Analysis","href":"/security/agent-traces"},{"title":"Capability Containment","href":"/security/capability-containment"},{"title":"Mark untrusted content in prompts","sidebarTitle":"Untrusted Content Marking","href":"/security/untrusted-content-marking"},{"title":"Scan agent memory before it persists","sidebarTitle":"Agent Memory Scanning","href":"/security/memory-scanning"}]},{"group":"Gateway","icon":"shield-halved","pages":[{"title":"How the gateway handles a request","href":"/gateway/overview"},{"title":"Store your provider keys with PromptGuard","href":"/gateway/provider-keys"},{"title":"Allow or block requests by IP, user or country","href":"/gateway/access-lists"},{"title":"Route requests to another model or provider","href":"/gateway/routing-rules"},{"title":"Attribute requests to your end users","href":"/gateway/end-users"},{"title":"Tag requests and filter events by tag","href":"/gateway/request-tags"},{"title":"Cap a project's monthly provider spend","href":"/gateway/spend-caps"},{"title":"Cache repeated requests","href":"/gateway/caching"},{"title":"Fall back to another model when one fails","href":"/gateway/fallback-models"}]},{"group":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations/overview"},{"title":"Auto-instrumentation","href":"/integrations/auto-instrumentation"},{"title":"SIEM export","href":"/integrations/siem-export"},{"group":"LLM Providers","pages":[{"title":"OpenAI","href":"/integrations/providers/openai"},{"title":"Anthropic","href":"/integrations/providers/anthropic"},{"title":"Google Gemini","href":"/integrations/providers/gemini"},{"title":"Azure OpenAI","href":"/integrations/providers/azure-openai"},{"title":"AWS Bedrock","href":"/integrations/providers/bedrock"},{"title":"Mistral AI","href":"/integrations/providers/mistral"},{"title":"Groq","href":"/integrations/providers/groq"},{"title":"DeepSeek","href":"/integrations/providers/deepseek"},{"title":"Cohere","href":"/integrations/providers/cohere"},{"title":"Hugging Face","href":"/integrations/providers/huggingface"},{"title":"OpenAI-compatible hosts","href":"/integrations/providers/openai-compatible"},{"title":"Ollama","href":"/integrations/providers/ollama"},{"title":"vLLM","href":"/integrations/providers/vllm"}]},{"group":"Frameworks","pages":[{"title":"LangChain","href":"/integrations/frameworks/langchain"},{"title":"LangGraph","href":"/integrations/frameworks/langgraph"},{"title":"LlamaIndex","href":"/integrations/frameworks/llamaindex"},{"title":"CrewAI","href":"/integrations/frameworks/crewai"},{"title":"FastAPI and ASGI","href":"/integrations/frameworks/fastapi"},{"title":"Vercel AI SDK","href":"/integrations/frameworks/vercel-ai"}]}]},{"group":"Shadow AI","icon":"user-shield","pages":[{"title":"Shadow AI","href":"/shadow-ai/overview"},{"title":"Get Started","href":"/shadow-ai/quickstart"},{"title":"Test It Yourself","href":"/shadow-ai/test-drive"},{"title":"Install the desktop agent","sidebarTitle":"Desktop Agent","href":"/shadow-ai/desktop-agent"},{"title":"Browser Extension","href":"/shadow-ai/browser-extension"},{"title":"Enroll your team's devices","sidebarTitle":"Fleet Enrollment","href":"/shadow-ai/fleet-enrollment"},{"title":"Deployment Modes","href":"/shadow-ai/deployment-modes"},{"title":"Privacy \u0026 Data Handling","href":"/shadow-ai/privacy-data-handling"},{"title":"Supported AI Tools","href":"/shadow-ai/supported-tools"},{"title":"What Each Part of a Request Is Checked For","href":"/shadow-ai/what-is-scanned"},{"title":"Customise What Shadow AI Detects","href":"/shadow-ai/customise-policies"},{"title":"Known Limitations","href":"/shadow-ai/known-limitations"},{"title":"Troubleshooting","href":"/shadow-ai/troubleshooting"},{"title":"Uninstall \u0026 Offboarding","href":"/shadow-ai/uninstall"}]},{"group":"SDKs","icon":"cubes","pages":[{"title":"SDKs","href":"/guides/sdks"},{"title":"Python SDK","href":"/guides/python-sdk"},{"title":"Node.js SDK","href":"/guides/node-sdk"},{"title":"Streaming","href":"/guides/streaming"},{"title":"Migration from OpenAI","href":"/guides/migration-from-openai"}]},{"group":"Developer tools","icon":"terminal","pages":[{"title":"Developer tools","href":"/tools/overview"},{"title":"CLI Tool","href":"/tools/cli"},{"title":"VS Code Extension","href":"/tools/vscode"},{"title":"Cursor","href":"/tools/cursor"},{"title":"MCP Server","href":"/tools/mcp"},{"title":"GitHub Code Scanner","href":"/tools/github-scanner"}]},{"group":"Cookbooks","icon":"book","pages":[{"title":"Protect a chatbot from prompt injection","href":"/cookbooks/chatbot-protection"},{"title":"Moderate prompts and responses","href":"/cookbooks/content-moderation"},{"title":"Detect and redact PII","href":"/cookbooks/data-privacy"},{"title":"Protect a LangChain agent","href":"/cookbooks/langchain-agents"},{"title":"Redact PII in a RAG pipeline","href":"/cookbooks/rag-pii-redaction"},{"title":"Protect a streamed response","href":"/cookbooks/streaming-protection"}]},{"group":"Platform","icon":"chart-line","pages":[{"title":"Dashboard and platform","href":"/platform/overview"},{"title":"Create and manage projects","sidebarTitle":"Managing Projects","href":"/platform/projects"},{"title":"Monitoring Dashboard","href":"/platform/dashboard"},{"title":"Analytics Cookbook","href":"/platform/analytics-cookbook"},{"title":"Track your usage and spend","sidebarTitle":"Usage Tracking","href":"/platform/usage-tracking"},{"title":"Get security alerts by webhook","sidebarTitle":"Webhooks","href":"/platform/webhooks"},{"title":"Review security events and the audit trail","sidebarTitle":"Audit Logs","href":"/platform/audit-logs"},{"title":"Share projects with your team","sidebarTitle":"Organizations \u0026 Teams","href":"/platform/organizations"},{"title":"Managed Service Providers","href":"/platform/msp"},{"title":"Set up single sign-on (SSO)","sidebarTitle":"Single Sign-On (SSO)","href":"/platform/sso"},{"title":"Provision members with Directory Sync (SCIM)","sidebarTitle":"Directory Sync (SCIM)","href":"/platform/scim"},{"title":"Two-factor authentication and sessions","sidebarTitle":"Two-factor authentication","href":"/platform/account-security"}]},{"group":"Going to Production","icon":"server","pages":[{"title":"Best Practices","href":"/production/best-practices"},{"title":"Reliability \u0026 Status","href":"/production/reliability"},{"title":"Rate Limits \u0026 Quotas","href":"/production/rate-limits"},{"title":"Latency Budgets","href":"/production/latency-budgets"},{"title":"Error Handling","href":"/production/error-handling"},{"title":"Set up PromptGuard for an enterprise","sidebarTitle":"Enterprise Setup","href":"/production/enterprise-setup"},{"title":"Self-host configuration reference","href":"/production/self-host-reference"},{"title":"Self-Host vs Cloud","href":"/production/self-host-vs-cloud"},{"title":"Troubleshooting","href":"/production/troubleshooting"}]},{"group":"Resources","icon":"file-lines","pages":[{"title":"Glossary","href":"/glossary"},{"title":"Compliance \u0026 Security","href":"/security/compliance"},{"title":"Data flow","href":"/security/data-flow"},{"title":"Third-Party Models","href":"/security/third-party-models"},{"title":"Extended Threat Coverage","href":"/security/ai-agent-traps"},{"title":"Plans \u0026 Limits","href":"/pricing"},{"title":"Changelog","href":"/changelog"},{"title":"Platform upgrade notes","href":"/releases/platform"},{"title":"Shadow AI desktop agent upgrade notes","href":"/releases/desktop-agent"},{"title":"Upgrade to SDK and CLI 2.0","href":"/releases/sdk-v2-upgrade"},{"title":"Versioning \u0026 support","description":"How the API is versioned, what counts as a breaking change, how much notice you get, how long each version is supported, and what has been removed.","href":"/versioning-and-support"}]},{"group":"Roadmap / Preview","icon":"flask","pages":[{"title":"CI/CD Security Gate","href":"/tools/ci-cd-security-gate"}]}]},{"tab":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"CI/CD Security Gate - PromptGuard","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}