Wink Pings

Claude adds a security gate to PRs: it can block merges, but false positives and costs remain unresolved

Anthropic has connected the Claude Security plugin to GitHub Actions, so PRs can be scanned for vulnerabilities, generate fix suggestions, and even block merges. The feature works smoothly, but beta limitations, token costs, false positives, and the 'reviewing itself' concern remain.

Anthropic's ClaudeDevs account announced that the Claude Security plugin can now run as a GitHub Action. It scans PRs for vulnerabilities, gives fix suggestions that can be committed, and can block merges.

Claude Security plugin can run as a GitHub Action

The installation method is still the plugin marketplace command:

/plugin install claude-security@claude-plugins-official

The docs are at code.claude.com/docs/en/claude-security.

'Being able to block merges' is the most practical change this time. Some users said in replies that suggestions get ignored, but a red check does not. This is especially true for people without a security background: they can tell whether the code runs, but they cannot tell whether a diff contains SQL injection. A check that can stop a merge will at least make the problem visible before merging.

But first, the limitations. The official announcement says the plugin is still in beta and is aimed at paid plans, the Claude API, and cloud providers. Scanning can consume a large number of tokens, and GitHub Actions do not support subscription login. The Action needs a GitHub-hosted Linux runner on GitHub.com and credentials for the Anthropic API or a third-party provider. Be careful with public repositories: reviews, job summaries, or report artifacts may expose unfixed vulnerabilities. By default, PRs from forks fail immediately. Dependabot PRs are not scanned. Patches are not applied automatically; you have to read the note yourself and open a separate PR with git apply. Scanning should also only run on code you own or have permission to test.

The comments were not all applause. Some asked where its advantage lies compared with Dependabot, Snyk, Semgrep, and GitHub Advanced Security. Some worried about cost: running a whole set of agents on every PR will make the bill pile up quickly. Some asked whether suggestions are private. Others were bluntly sarcastic: Claude reviewing the vulnerabilities Claude wrote five minutes ago — a beautiful closed loop. In security, the biggest fear is that no one is watching inside such a closed loop.

False positives are another problem. A user posted logs saying that on Fable 5.2, 45% of PR reviews crashed with zero output, with 16 failures over two days, and burned $3.60 in credits. One ordinary Python PR was flagged as reasoning_extraction / reverse engineering after importing numpy and pandas. The official docs also mention that the Fable model's cybersecurity classifier will flag certain requests and then automatically fall back to Opus to rerun. The scan may complete, or it may stall. For teams that block merges on a red check, false positives are not minor noise; they train everyone to ignore red.

User shows screenshot 1 of Claude review crashing
User shows screenshot 2 of Claude review crashing
User shows screenshot 3 of Claude review crashing
User shows screenshot 4 of Claude review crashing

Screenshots from Bibek Poudel's tweet.

So a more reasonable use is to put it into defense in depth, rather than treating it as the only security gate. The docs themselves say it does not replace static analysis, dependency scanning, and code review. It is suitable for on-demand deep scans, or for adding extra checks to PRs in high-trust repositories. Start with a controlled repository, observe token consumption, false-positive rate, and quality of fix patches, and then decide whether to block merges. Don't start by blocking everything. Claude can help you watch PRs, but security responsibility does not shift just because of one Action.

发布时间: 2026-12-01 08:34