🛡️ Claude Security: Anthropic's plugin now scans pull requests as a GitHub Action
In brief
- 🛡️ The Claude Security plugin for Claude Code can now run as a GitHub Action that checks pull requests for vulnerabilities, TestingCatalog reports.
- According to Anthropic's docs, the job scans the changes, posts a review with suggested fixes and can block the merge.
- It needs API access or a third-party provider, not a subscription, and should run only where everyone who can push is trusted.
🛡️ Anthropic's Claude Security plugin for Claude Code can now be used as a GitHub Action, TestingCatalog reports, citing an announcement by ClaudeDevs. On a pull request the job scans the change with several AI agents, posts a review with suggested fixes and can block the merge; it can also scan the whole repository on a schedule. According to TestingCatalog, findings can also be triaged and monitored in real time. Anthropic's documentation carries a warning: run the job only in repositories where you trust everyone who can push, because anyone who adds text or code to a pull request's branch can steer the scan.
How the plugin works. Claude Security runs as a plugin inside a Claude Code session. When it scans a whole repository, agents first map the architecture, then hunt for vulnerabilities, and every finding is checked independently before the report is written. It can also scan only a change, such as the diff of a branch, a pull request or a single commit. Findings can be turned into patches that a separate agent reviews; patches are never applied automatically. The report comes as Markdown, as JSONL and as a SARIF 2.1.0 file for GitHub code scanning. In Claude Code the plugin installs with /plugin install claude-security@claude-plugins-official.
The GitHub Actions job. According to Anthropic's documentation, the job scans the changes of a pull request, posts a review with suggested fixes and can block the merge. It can also scan the whole repository on a schedule. It needs a GitHub-hosted Linux runner on GitHub.com and either Anthropic API access or a third-party provider, because it cannot sign in with a paid plan. The cost falls on the account that owns the job's credential, and Anthropic advises creating a credential for this job alone. In the sample workflow a draft pull request passes without a scan until it is marked ready for review, and pull requests from Dependabot are not scanned either.
The limits. The documentation says to use the job only where you trust everyone who can push. Anyone who adds text or code to a pull request's branch can steer the scan, have it run that code and make it send model requests on the job's credential. By default the job fails for pull requests from forks. In a public repository the review, the job summary or the report artifact can disclose a live vulnerability, so teams that want findings kept private should scan in their own session instead. The plugin is also no replacement for static analysis or dependency scanning; Anthropic positions it as a deep-scan layer next to them.
What is the author's view. TestingCatalog calls the step important for companies, whether the checks come from Claude or another model, and expects the end game to be AI agents protecting production apps or other agents in real time. That is the author's assessment, not Anthropic's. The claim that findings can be monitored in real time comes from the post; the documentation page we could read describes the job as a pull request review and a scheduled scan. A separate, older action, anthropics/claude-code-security-review, has checked pull requests since 2025 and also warns that it is not hardened against prompt injection.