Skip to content

AI Compass / News

Claude Security now checks pull requests as a GitHub Action

Automation Prompting

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.

Technical drawing: four boxes joined by arrows: pull request, scan, review and finally fail_on: high, the threshold at which the check fails.Technical drawing: four boxes joined by arrows: pull request, scan, review and finally fail_on: high, the threshold at which the check fails.

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:

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:

What you can do:

  1. Check that your repository fits: GitHub.com, hosted Linux runners, and only people with write access whom you trust.
  2. 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.
  3. 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.
  4. Start with small pull requests and keep an eye on costs before you switch on the scheduled scan.
  5. 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