Claude Code: Claude Security Plugin Scans Pull Requests in GitHub Actions
Anthropic announced that the Claude Security plugin for Claude Code can now run as a GitHub Actions job. On a pull request it scans the change, posts a review with suggested fixes, and can block the merge, and it can also scan the whole repository on a schedule. The job requires Anthropic API access or a third-party provider, since it cannot sign in with a paid plan.
Key Takeaways
- The Claude Security plugin now runs as a GitHub Actions job, not only in a session or shell.
- On pull requests it posts a review with suggested fixes and can block the merge.
- It can also scan the whole repository on a schedule.
- It requires Anthropic API access or a third-party provider, since paid plan sign-in is not supported, and usage bills to the credential owner.
- Only use it where every pusher is trusted, because PR content can steer the scan, and fork PRs fail by default.
- Anthropic frames it as a deep-scan layer that complements security guidance, Code Review and existing scanners, not a replacement.
What Changed
Anthropic announced through the ClaudeDevs account that the Claude Security plugin for Claude Code can now run as a GitHub Action. The plugin already ran a multi-agent vulnerability scan inside a Claude Code session or from the shell with the claude-security command. The new GitHub Actions job brings the same deep scan to pull requests.
What the Job Does
On a pull request, the job scans the change, posts a review with suggested fixes that can be committed, and can block the merge. It can also scan the whole repository on a schedule. The post also describes triaging scanner findings, reducing attack surface, and watching scans live. In a session, the plugin maps the architecture, hunts for vulnerabilities, and has agents independently review every finding before the report is written.
Requirements
The job needs a GitHub-hosted Linux runner on GitHub.com. It also needs Anthropic API access or a third-party provider, because it cannot sign in with a paid plan. A scan in GitHub Actions counts toward the account that owns the job's model credential. The plugin's GitHub Actions guide covers adding the workflow and creating a credential for this job alone. The docs reference plugin version 0.13.0.
Safety Notes
The documentation warns that the job should only be used in a repository where everyone who can push is trusted. Anyone who adds text or code to a pull request branch can steer the scan, make it run that code, and have 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, summary, or report artifact can disclose a live vulnerability, so private scanning in a session is recommended there. With the sample workflow, draft pull requests and Dependabot pull requests pass without a scan.
Where It Fits
Anthropic positions the job as the "on pull request, deep scan" layer, alongside the security guidance plugin (in-session), Code Review (Team and Enterprise), the managed Claude Security product (Enterprise), and existing static analysis tools.