Be first to know. Be ready to defend.

The Claude Security plugin can now scan pull requests in GitHub Actions

Illustration headed Claude Security now reviews pull requests. A terminal box lists: trigger, PR opened or updated; review, comments, never approves; fixes, suggested, for you to check; fail_on, high, the default; forks, job fails by default. A footer warns that text in a PR can steer the scan. Chips read GitHub Actions, Blocks on HIGH by default, Trusted repos only.Illustration headed Claude Security now reviews pull requests. A terminal box lists: trigger, PR opened or updated; review, comments, never approves; fixes, suggested, for you to check; fail_on, high, the default; forks, job fails by default. A footer warns that text in a PR can steer the scan. Chips read GitHub Actions, Blocks on HIGH by default, Trusted repos only.
On this page
  1. How a pull request scan works
  2. Blocking a merge
  3. Requirements and cost
  4. The trust warning
  5. What to do

Anthropic’s Claude Security plugin for Claude Code can now run in GitHub Actions. According to its documentation, the job scans each pull request’s changes, posts a review with suggested fixes, and “can block the merge”. It can also scan the whole repository on a schedule.

The plugin already ran inside a Claude Code session and from the shell, where a developer starts a scan, reads the report and applies patches by hand. The Actions job puts the same multi-agent scan at the point where code is about to merge. Its GitHub Actions guide arrived in Anthropic’s plugin repository with version 0.13.0 on 24 November, and the documentation now asks for 0.13.1 or later.

How a pull request scan works

The job runs when a pull request opens, gets new commits, leaves draft or changes its base branch. Claude agents scan the change, which takes minutes to tens of minutes depending on its size, and post one review of comments. The review never approves a pull request or requests changes.

What the Claude Security plugin does on a pull request in GitHub Actions. Step 1, a pull request opens or changes; drafts and Dependabot pull requests pass with no scan by default. Step 2, agents scan the change, which takes minutes to tens of minutes depending on size. Step 3, a comment review is posted, never an approval or a request for changes. Step 4, suggested fixes follow, written by AI agents, so review them before you commit. Step 5, the check passes or fails, set by fail_on, and it blocks the merge only as a required check. A pull request from a fork fails the job unless you opt in.What the Claude Security plugin does on a pull request in GitHub Actions. Step 1, a pull request opens or changes; drafts and Dependabot pull requests pass with no scan by default. Step 2, agents scan the change, which takes minutes to tens of minutes depending on size. Step 3, a comment review is posted, never an approval or a request for changes. Step 4, suggested fixes follow, written by AI agents, so review them before you commit. Step 5, the check passes or fails, set by fail_on, and it blocks the merge only as a required check. A pull request from a fork fails the job unless you opt in.

Suggested fixes can come in the same review, or in a second one. In the guide’s sample workflow the fixes arrive about 9 to 13 minutes after the first review on a small pull request. AI agents write each fix, and the guide says to review it before you commit it.

By default, draft pull requests and those from Dependabot pass without a scan. The documentation tells you to review Dependabot’s changes yourself.

Blocking a merge

A setting called fail_on decides which findings fail the job. The default, high, fails on any CRITICAL or HIGH finding. A failed job only blocks the merge if you make it a required status check in GitHub.

The values of the fail_on setting. confident-high: CRITICAL or HIGH findings of high confidence, the fewest blocks. high: any CRITICAL or HIGH finding, the default. medium: any CRITICAL, HIGH or MEDIUM finding, more blocks. any: any finding at all, the strictest. never: no finding fails the job, report only.The values of the fail_on setting. confident-high: CRITICAL or HIGH findings of high confidence, the fewest blocks. high: any CRITICAL or HIGH finding, the default. medium: any CRITICAL, HIGH or MEDIUM finding, more blocks. any: any finding at all, the strictest. never: no finding fails the job, report only.

The guide is frank about the limits. “AI agents set each severity and confidence, and both can change between runs.” The main documentation adds that scans are nondeterministic: two scans of the same code can surface different findings. A stricter setting catches more and blocks more merges. confident-high blocks fewer, but lets through real CRITICAL or HIGH findings that the agents rate at lower confidence.

Requirements and cost

The job needs a GitHub-hosted Linux runner on GitHub.com. GitHub Enterprise Server and GHE.com aren’t supported, and neither are merge queues or scans on push events. It can’t sign in with a Claude subscription. It needs a Claude API key or a cloud provider such as Amazon Bedrock, Google Cloud or Microsoft Foundry. The guide recommends workload identity federation, so no secret sits in the repository. If you use a key, put it in its own workspace with a monthly spend limit.

Anthropic gives no price for a scan. Usage counts against the account that owns the job’s credential. A whole-repository scan “can take hours and cost much more than a review”, the guide says, and Fable, the default model, costs several times as much as Opus there. The sample scheduled workflow uses Opus for that reason.

The plugin also has two other modes that don’t depend on Actions. One triages SARIF 2.1.0 results from other scanners and checks whether each finding holds up. The other maps your attack surface. Anthropic says the plugin complements static analysis, dependency scanning and code review. It doesn’t replace them.

The trust warning

Anthropic’s warning is blunt. “Use the job only in a repository where you trust everyone who can push.” Anyone who adds text or code to a pull request’s branch can steer the scan, make it run that code, and spend the job’s model credential. That’s why pull requests from forks fail the job by default. A setting called dangerously_scan_external_branches turns that off, and the guide doesn’t encourage it.

Public repositories carry a second risk. A review, the job summary or the report artifact “can disclose a live vulnerability” to anyone who reads them. For those, Anthropic suggests scanning locally instead.

What to do

  • Use the job only in repositories where you trust everyone with push access. Keep fork pull requests failing, and leave GitHub’s settings that send write tokens and secrets to fork workflows switched off.
  • In public repositories, scan in a local Claude Code session instead, so findings don’t appear in public comments.
  • Create a separate credential for this job alone. Prefer workload identity federation. If you use an API key, give it its own workspace and a monthly spend limit.
  • Start with the default fail_on: high and watch a few weeks of results before you make the job a required check.
  • Check the cost of your first scheduled scan, and lower the scan effort or change the model if it’s too high.
  • Keep your existing static analysis and dependency scanners running.
  • Read every suggested fix before you commit it.