Dark blue graphic with a shield and checkmark showing the Claude Security GitHub Action that reviews pull requests

Claude Security GitHub Action Reviews Your Pull Requests and Can Block Merges: Setup, Limits and What a Green Check Misses

The Claude Security GitHub Action lets Anthropic’s security scanner review every pull request in your repo, suggest fixes you can commit, and fail the check when it finds something serious. Anthropic’s developer team announced it on November 30, 2026, and it’s still in beta. The plugin installs with one command, but the GitHub job itself needs API credentials, not a Pro or Max login.

Here’s the short version before the details.

  • Announced: November 30, 2026, by the ClaudeDevs account, according to Cyber Press
  • Status: beta, available to paid Claude users in Claude Code
  • Install: /plugin install claude-security@claude-plugins-official
  • Needs: a GitHub-hosted Linux runner plus Anthropic API or supported cloud-provider credentials
  • Cost: billed as API tokens, with no price published in the coverage we reviewed

The credentials line is the one that trips people up. A subscription sign-in works inside Claude Code on your laptop, but it doesn’t work for the Action.

What the Claude Security GitHub Action checks on every pull request

This isn’t a style linter. It hunts for security flaws like injection bugs, weak authentication and unsafe data flows, then posts its findings on the pull request with fixes attached. That makes it a pull request security review that runs before code reaches your main branch.

Anthropic’s demo flagged a SQL injection in an invoice search endpoint, where a user-supplied search term was glued straight into a database call. The suggested fix passed that term as a bound parameter, so the database treats it as data instead of code.

Findings don’t appear raw. According to Cryptika, agents map the application, hunt for bugs, and then separate agents verify each candidate. In the demo, nine leads shrank to three candidates and one confirmed finding.

Two extras shipped alongside it. Vulnerability Triage takes a SARIF 2.1.0 file from a scanner you already run and checks those alerts against your source code. Attack surface analysis looks for exposed code you may not need, such as routes reachable before login.

This is a tooling release, not a model launch. Anthropic’s next model is delayed until January 2027, so products like this are what you’ll actually get to use in the meantime.

Setting it up: credentials, runners and the pull requests it skips

Start by installing the plugin in Claude Code with the command above. A DEV Community walkthrough says it needs Python 3.9 or later and Git. Then you add the Action to a workflow that triggers on pull requests.

Plan for the bill before you flip it on. Usage is charged as API tokens, and the DEV author says cost grows with repository size and can sting on monorepos. Scans can burn a lot of tokens, and Cyber Press says the same.

The sample workflow described by Cryptika treats different pull requests differently:

Pull request type What the sample workflow does
Draft Skipped until you mark it ready
Dependabot Not scanned
From a fork Fails by default
Ready, same-repo Scanned for what the change touches

If your team opens most work as drafts, nothing gets scanned until someone clicks Ready for review. That’s easy to forget and easy to mistake for a clean result.

Why a green check isn’t a clean bill of health

Cryptika relays a warning from Anthropic’s documentation: two scans of the same code can produce different findings. A clean pull request review also doesn’t mean the whole codebase is clean, because the Action focuses on what the change touches.

There’s a trust issue too. Anthropic recommends running the job only where everyone with push access is trusted, since pull request text and workflow edits can steer the scan. On public repositories, review comments or downloadable reports could reveal a vulnerability before you’ve fixed it.

Keep your existing scanners running. Cyber Press suggests pairing the Action with branch protection, mandatory reviews on workflow files, least-privilege tokens, and keeping secrets out of untrusted fork contexts.

And remember the fixes are suggestions. The Action doesn’t apply patches on its own, and the DEV author says proposed fixes land in a patches/ folder in the sample setup.

Advisory mode first, merge blocking later

Blocking is opt-in. Cryptika says the job can fail a merge when findings reach a severity threshold you configure, and the DEV author’s illustrative sample defaults to failing on any critical or high finding. None of the coverage walks through the exact setting, so check Anthropic’s setup docs before you rely on it.

A rollout that matches what the DEV author recommends looks like this:

  • Run it in advisory mode on one high-risk repo for about two weeks.
  • Track false positives and how much it overlaps with your current scanner.
  • Watch token spend before you add more repos.
  • Only then make the check required.

Skipping the trial period is how a flaky check becomes a team habit of re-running until it passes. The same author calls that “the CI equivalent of deleting a failing test.”

It also sits next to your editor’s AI instead of replacing it. Tools like Cursor, now being renamed Grok Build, help write code, while this reviews it afterward.

Frequently Asked Questions

Is the Claude Security GitHub Action free?

Not by itself. The plugin is in beta for paid Claude users in Claude Code, and the GitHub job bills API tokens. The coverage we reviewed gives no price.

Can I use my Claude Pro or Max login in GitHub Actions?

No. The Action needs Anthropic API credentials or credentials from a supported cloud provider.

Does it fix my code automatically?

No. It suggests fixes you commit yourself, and you can apply them from the review comment.

Will it scan Dependabot or draft pull requests?

In the sample workflow, Dependabot pull requests aren’t scanned, and drafts pass without a scan until they’re marked ready.

Can the Claude Security GitHub Action block a merge?

Yes, when findings hit the severity threshold you set. A failed check only stops a merge if your branch protection rules require that check.

My verdict: switch it on in advisory mode this week if you have API credits to spare and a repo that handles customer data. Don’t make it a required check until you’ve compared a few weeks of its findings against your current scanner. Treat it as a sharp extra reviewer, not a replacement for the one you already trust.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *