Claude Security Now Scans Your GitHub PRs — and Can Block the Merge. Here's What a Green Check Doesn't Prove
Originally published on AI Growth Lab
The short answer: on November 30, 2026, Anthropic announced that its Claude Security plugin for Claude Code now runs as a GitHub Action. It reviews your pull requests for vulnerabilities, suggests fixes you can commit, and — if you configure it that way — blocks the merge when it finds something serious. That is a real step forward for small teams that cannot afford a dedicated AppSec engineer. But a green check from this scanner is not proof your code is safe, and Anthropic's own documentation says so. The scans are nondeterministic, the sample workflow silently skips draft and Dependabot PRs, fork PRs fail by default, and anyone who can push to the repo can influence what the scanner sees. Treat it as a sharp-eyed junior reviewer that never sleeps — not as a guarantee.
What was actually announced
Anthropic's developer account (@ClaudeDevs) announced the GitHub Action on November 30, 2026. The Claude Security plugin itself already existed inside Claude Code; what is new is that it now runs in CI, on every pull request, without a human in the loop.
Three things arrive together. First, the PR scanner itself: it reviews pull requests for vulnerabilities, suggests fixes you can commit, and can block the merge. Second, Vulnerability Triage: you hand it a SARIF 2.1.0 file produced by your existing scanner, and it returns the valid findings in fix order — a triage layer on top of the noisy output most SAST tools produce. Third, Attack Surface Analysis: it finds code that is exposed to the internet (or to untrusted input) that you may not need, and can propose patches to test. A live scan view shows each scan as it runs in the terminal, so you can watch the agents work instead of staring at a spinner.
The demo Anthropic showed is deliberately ordinary, and that is the point. An invoice search takes user input and passes it straight into a database query — a textbook SQL injection. The scanner flags it, explains the data flow, and proposes a parameterized-query fix. Nobody needs a demo of an exotic zero-day; the vulnerabilities that actually breach companies are usually this boring. OWASP has listed injection in its Top 10 for more than a decade, and Verizon's Data Breach Investigations Report keeps finding that web-application attacks, often exploiting known vulnerability classes, remain one of the most common breach paths. The value of a scanner is not in finding the clever bug once a year; it is in catching the boring bug every week.
How the scan works: agents hunting, agents verifying
The architecture matters, because it explains both the strengths and the weaknesses. According to Anthropic's description, the scan is multi-agent. One set of agents maps the application architecture — what the services are, where trust boundaries sit, how data flows from an HTTP handler to a database. Another set hunts for vulnerabilities within that map. Then independent verifier agents review every finding before it appears in the report. The idea is to cut the false-positive rate that makes developers ignore SAST output: a finding only survives if a second, independent agent agrees it is real.
Installation is straightforward if you already use Claude Code. Install the plugin with:
/plugin install claude-security@claude-plugins-official It requires Python 3.9 or later on your PATH, plus Git, and runs on Linux, macOS, and Windows. The GitHub Action runs on a GitHub-hosted Linux runner. It is in beta. Paid Claude users can run the plugin inside Claude Code, but the GitHub Action cannot use a Pro or Max subscription sign-in — it needs Anthropic API credentials or supported cloud-provider credentials. That distinction will trip people up: if your team runs on Max seats and you wire up the Action expecting it to borrow those seats, it will fail. Budget for API usage instead, and remember that scan cost grows with repository size.
An illustrative workflow — not the official one
The workflow below is illustrative, written to show the shape of the setup. Copy the official workflow from Anthropic's documentation for production use, and pin the action version.
# ILLUSTRATIVE — not official. See Anthropic's docs for the real workflow. name: Claude Security on: pull_request: types: [opened, synchronize, reopened, ready_for_review] jobs: claude-security: runs-on: ubuntu-latest permissions: contents: read pull-requests: write steps: - uses: actions/checkout@v4 - name: Run Claude Security scan uses: anthropics/claude-security-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # Default behaviour: fail the job on any CRITICAL or HIGH finding. The caveats — read this before you turn on merge-blocking
This is the section that decides whether the tool helps you or hurts you. None of these caveats make Claude Security useless. All of them make blind trust in it dangerous.
1. Scans are nondeterministic. Two scans of the same code can surface different findings. Large language models are probabilistic systems; the same prompt, the same code, and a different sampling run can produce a different report. Anthropic's own documentation says a clean result is not proof of absence — a green check means "this scan found nothing," not "nothing is there." That has a direct operational consequence: if a PR passes on Monday, that tells you almost nothing about whether the same code would pass on Tuesday. Do not treat a passing scan as a security sign-off in an audit, a compliance review, or a customer questionnaire. And do not re-run a failing scan hoping for a luckier draw — if a finding looks real, fix it; re-rolling until it disappears is the CI equivalent of deleting a failing test.
2. Draft PRs and Dependabot PRs are silently skipped. The sample workflow skips draft pull requests — they pass with no scan at all until marked ready for review. That is defensible as a design choice (nobody wants a scanner nagging a work-in-progress), but it creates a hole if your team merges from drafts or forgets to mark PRs ready. Dependabot PRs are skipped too, which matters because dependency updates are exactly the PRs where a malicious or compromised package change can slip in. If you rely on this Action as your only PR gate, add a separate check for dependency PRs, or accept that your gate has a known bypass and document it.
3. Fork PRs fail by default. If your project accepts contributions from forks — which most open-source projects do — the Action fails on those PRs unless you configure credentials for them. The reason is sound: you should not hand secrets to code from a stranger's fork. But the failure mode is confusing: a contributor opens a PR, the security check goes red, and neither side knows whether the code is vulnerable or the scanner simply could not run. Decide your fork policy explicitly, document it in CONTRIBUTING.md, and make sure maintainers know a red check on a fork PR is not evidence of a vulnerability.
4. Trust everyone with push access — or do not use it here. Anthropic says to use the Action only in repositories where everyone with push access is trusted. The reason is subtle and important: PR text can steer the scan. A pull request title, description, or comment is input to the agents, and a malicious or careless contributor who can push can edit the workflow file itself, change what the scanner checks, or craft prompt text that nudges the agents away from a vulnerable file. This is the same class of problem as prompt injection, wearing a CI badge. In a small trusted team, the risk is low. In a large org, a public repo, or any repo with broad push access, it is a real threat model, and you should treat the workflow file as security-critical code: protect it with CODEOWNERS, require review for changes to .github/workflows/, and audit who can push.
5. It costs real tokens, and cost grows with repo size. A multi-agent scan that maps your architecture and reads your code consumes substantial tokens. On a small service, that is pocket change. On a monorepo, it can become a noticeable line item — and a slow check. Measure the cost and latency on your largest repository before rolling it out everywhere, set a budget alert on the API key, and consider scoping the scan to changed files or specific paths rather than the whole tree on every push.
6. Patches are suggestions, never auto-applied. The scanner writes proposed fixes to a patches/ folder. Review every patch before committing it, the same way you would review a patch from a colleague you have not fully vetted yet. An AI-generated fix can close the reported hole while opening a different one — a parameterized query that breaks a legitimate search, an allowlist that is too narrow and breaks production, or a fix that addresses the symptom in one file while the same pattern lives in five others. The fix is the start of the work, not the end of it.
Where this sits: Code Review, /security-review, and the managed product
Anthropic now has several overlapping security surfaces, and the naming invites confusion. Here is how they fit together:
| Surface | Where it runs | Who triggers it | Best for |
|---|---|---|---|
| Claude Security GitHub Action | CI, on every PR | Push / PR events | A merge gate for teams that want automatic blocking |
| Code Review (Claude Code) | Locally or in CI | Developer request | General code quality plus security, on demand |
/security-review | Inside Claude Code | Developer, interactively | A deep, conversational review you can steer |
| Claude Security (managed product) | Anthropic-hosted | Continuous / scheduled | Organisations that want scanning without owning the pipeline |
The GitHub Action is the only one of the four that blocks a merge by default, and that is both its selling point and its risk. An interactive /security-review lets you argue with the model, ask it to check a specific file, and iterate. A CI gate gives you none of that: it is a binary pass/fail on code the author may not have written with the scanner in mind. Use the interactive review while you are building a feature, and let the Action be the backstop — not the other way around.
The context matters too. GitHub itself now sends AI reviewers to pull requests — see GitHub Now Sends 8 AI Reviewers to Your Pull Request. The supply-chain angle matters as well: see Someone Hid Malware in 5 AI Models on Hugging Face. And for the protocol layer connecting agents to apps, see AG-UI 1.0.
A sane rollout plan
Do not turn on merge-blocking on day one. Start in advisory mode: run the Action, let it comment, and let it fail the job without blocking the merge (or run it as a non-required check). For two weeks, track three numbers: how many findings were real, how many were false positives, and how many real findings your existing tools would have caught anyway. If the false-positive rate is high, tune the configuration, narrow the scope, or accept that the tool is not ready for your codebase. If the real findings are mostly things your SAST already catches, the Action is duplicating spend, not adding safety.
It does not replace SAST, dependency scanning, secret scanning, or human review. A green check is a useful signal. It is not a verdict. Ship accordingly.
Sources: CyberSecurityNews — Claude Security scans come to GitHub · GBHackers — Claude Code security plugin scans GitHub pull requests · AlphaSignal — Anthropic's Claude Security now blocks GitHub merges with multi-agent review · ReadModelMag — Green check, not safe. Announcement: @ClaudeDevs, November 30, 2026. Install command, platform requirements, beta status, and the Pro/Max credential limitation are as documented by Anthropic; the YAML workflow in this article is illustrative, not official — use Anthropic's published workflow for production.

