セキュリティ
Claude CodeのClaude Securityプラグインが、GitHub Action上でプルリクエストの脆弱性を自動点検し、マージを止められるようになりました。
公式ドキュメントは、pushできる人を全員信頼できるリポジトリでだけ使うよう案内しています。
プルリクエストの文字やコードがそのままスキャンを操るおそれがあるためです。
フォークからのプルリクエストは既定で素通りし、公開リポジトリでは結果が脆弱性をそのまま外に見せる場合もあります。
導入する人は、pushできる人を信頼できる身内だけに絞ったリポジトリで試してください。
出典の原文(引用)
"On a pull request, the plugin's GitHub Actions job scans the change, posts a review and suggested fixes, and can block the merge." / "Use the job only in a repository 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 a pull request from a fork." / "In a public repository, the review, the job summary, or the job's report artifact can disclose a live vulnerability."— code.claude.com
