返回综合榜
开发工具与框架X AI model discovery

Anthropic 的 Claude Security 插件现可作为 GitHub Action 审查拉取请求

Anthropic 的 Claude Code 的 Claude Security 插件现在可以作为 GitHub Action 运行,用于审查拉取请求中的漏洞。该工具仍处于测试阶段。它会扫描每个拉取请求中的更改,发布带有可提交修复建议的审查意见,并且在受保护分支上将其状态检查设为必需时,可以阻止合并。

公告称它还可以对扫描器发现进行分类、减少攻击面,并实时查看扫描过程。演示中捕获了一个典型的 CWE-89 SQL 注入问题,即直接拼接到 SQL 查询中的 f-string。该 Action 不支持订阅登录,需要 API 密钥,并且完整扫描可能消耗大量 token。

文档中有一个重要注意事项:Anthropic 自己表示,只应在所有拥有推送权限的人都可信的情况下使用它,因为拉取请求的内容可以影响扫描。这意味着这个漏洞扫描器自身也面临提示注入的风险。对于开源维护者,示例工作流默认会让来自 fork 的拉取请求失败,作者认为这是正确的做法。

团队还面临一个实际问题:是将该智能体设为必需检查,还是先从仅评论模式开始。

Anthropic's Claude Security plugin now runs as a GitHub Action to review pull requests

Anthropic's Claude Security plugin for Claude Code can now run as a GitHub Action that reviews pull requests for vulnerabilities. The tool is still in beta. It scans the changes in each pull request, posts a review with a suggested fix that can be committed, and can block the merge if its status check is made required on a protected branch.

The announcement says it can also triage scanner findings, reduce attack surface, and watch scans live. The demo catches a classic CWE-89 SQL injection, an f-string dropped straight into a SQL query. The Action does not work with subscription login and requires an API key, and full scans can consume a lot of tokens.

The documentation adds an important caveat: Anthropic itself says to use it only where everyone with push access is trusted, because pull request content can steer the scan. That means the vulnerability scanner is itself exposed to prompt injection. For open source maintainers, the sample workflow fails fork pull requests by default, which the author considers the right call.

A practical question remains for teams: make the agent a required check, or start with comment-only reviews.

Claude CodeClaude Security pluginGitHub Actionpull request reviewvulnerability scanningprompt injectionbeta
综合65
质量81
猎物热度57
时效82
信息来源1 个来源,主来源:X AI model discovery

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源