AI Compass / News
Claude Security now checks pull requests as a GitHub Action
Since version 0.13.0, Anthropic's security plugin for Claude Code also runs in GitHub: it checks every pull request for vulnerabilities and suggests fixes. It's only meant for repositories where you trust everyone with write access.
Source: Claude Security in CI (claude-plugins-official, GitHub),
Note: I use Claude and Claude Code for my own work. Anthropic does not pay me, and the links are not affiliate links.


What happened: Claude Security is an Anthropic plugin that searches code for security vulnerabilities inside Claude Code. Since version 0.13.0, released on 24 November 2026, it also runs as a GitHub Action, an automated step inside GitHub (setup guide in the repository, version history).
What it does: There are two modes, and you can use both:
- Pull request review: for every pull request (a proposed change in GitHub), Claude checks the changed code. Anthropic says this takes anywhere from minutes to tens of minutes. The result is posted as a comment review, never as an approval or a request for changes. By default it also suggests fixes, and you can move those to a second pass.
- Scheduled scan: on a schedule, Claude checks the whole repository. This takes anywhere from minutes to hours, and the result appears as a report in the job summary.
The fail_on setting decides how severe a finding has to be before the check fails. The default is high, which means any critical or high finding. If you make the check a required check in GitHub, a failure holds up the merge.
Requirements and costs:
- GitHub.com only, on GitHub-hosted Linux runners (the machines that run Actions). GitHub Enterprise Server and GHE.com aren’t supported, and neither are merge queues or push events. Pull requests from forks (copies under other accounts) fail by default.
- You need access to Claude, for example an API key. Anthropic recommends a separate workspace just for this job, with a monthly spend limit.
- The default model is Fable, and Anthropic recommends it. For smaller pull request reviews, Anthropic says Sonnet 5.5 or Opus 5.5 can be a reasonable trade-off for speed, but suggests a final Fable scan before merging where possible. A whole-repository scan costs much more than a pull request review, even on a small project. Because Fable costs several times as much as Opus there, Anthropic’s sample for that scan uses Opus.
What you can do:
- Check that your repository fits: GitHub.com, hosted Linux runners, and only people with write access whom you trust.
- Set up access. Anthropic recommends workload identity federation, a sign-in method that keeps no key in the repository. Otherwise, store a dedicated API key with a spend limit as a secret.
- Copy the sample workflows from the guide and pin the action to a full commit, not a branch. The action runs with
sudo, meaning admin rights on the runner. - Start with small pull requests and keep an eye on costs before you switch on the scheduled scan.
- Read every suggested fix before you commit it. An AI writes those too.
Context: Anthropic is upfront about the limits. Text in a pull request can steer the scan, and the scan can run the pull request’s code. Anyone who can push can also edit the workflow and use its model credential. So the action belongs only in repositories where you trust everyone with write access. On a public repository, a review can reveal a vulnerability that’s still open; in that case, Anthropic suggests scanning locally. And in its own words: “A clean review is not proof of absence.”
My workshops show you how to bring AI into your team. See the workshops