Claude Code Security Plugin Adds GitHub Actions Integration and Automated Merge Blocking
Anthropic has released the Claude Security plugin for Claude Code with GitHub Actions support, enabling pull request vulnerability reviews, automated merge bloc
Anthropic has officially announced new capabilities and GitHub Actions support for the 'Claude Security' plugin, designed for Claude Code, the terminal-based AI coding assistant. With this update, development teams can automatically scan for security vulnerabilities within CI/CD pipelines on GitHub and conditionally block pull request merges before vulnerable code reaches production branches.

Image source: https://x.com/ClaudeDevs/status/2127487260300079139
Catching security vulnerabilities early in the software development lifecycle is critical, as fixing issues post-release or during production stages incurs massive costs. This new integration enables automated security reviews and remediation suggestions directly inside code review workflows.
GitHub Actions Integration and Automated Merge Blocking
The standout feature of this update is the ability to run the Claude Security plugin as a GitHub Action.
GitHub Actions is a workflow automation platform that executes automated tasks—such as testing, building, and deploying—whenever code changes are pushed or pull requests are opened in a repository. Integrating Claude's security scanner brings several automated safeguards:
- Pull Request Vulnerability Review: Scans code diffs before merging to catch critical vulnerabilities such as SQL injections or exposed credentials.
- Automated Merge Blocking: Halts the merge process when security criteria are not met, preventing unverified or vulnerable code from entering the main branch.
- Actionable Fix Suggestions: Goes beyond flagging issues by proposing precise code fixes that developers can review and commit immediately.
SARIF Triage and Attack Surface Analysis
To combat developer fatigue caused by overwhelming alert volumes from traditional static analysis tools, advanced triage capabilities have been introduced:
- Vulnerability Triage: Takes a SARIF (Static Analysis Results Interchange Format) file from your scanner and filters the output to return only valid findings arranged in order of priority for remediation.
- Attack Surface Analysis: Identifies exposed or unnecessary code components within the repository and proposes experimental patches for testing.
These features are accompanied by a live terminal view that displays each security scan as it runs.
Beta Availability, Requirements, and Installation
The plugin is currently available in beta on paid plans, via the Claude API, and through cloud providers.
A key operational caveat is that the GitHub Action environment does not support web subscription sign-in, meaning users must configure API billing. Because comprehensive security scans can consume a significant number of tokens, teams should monitor their token usage accordingly.
To install the plugin, use the following command in your Claude Code environment:
/plugin install claude-security@claude-plugins-official
Sources
- Anthropic ClaudeDevs Official X: Claude Security Plugin GitHub Actions Announcement
- Official Documentation: Claude Code Security Documentation