feat: add Claude Code Security Review GitHub Actions workflow - #2932
Conversation
- Add security.yml workflow based on anthropics/claude-code-security-review Quick Start guide - Use latest commit hash c19afa74097b892109a6598b94297280ce7d1beb instead of @main - Configure with secrets.ANTHROPIC_API_KEY for authentication - Trigger on pull request events for automated security review - Include appropriate exclusions for node_modules, dist, build, .next directories Co-Authored-By: hirotaka.miyagi@route06.co.jp <h.miyagi.cnw@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Updates to Preview Branch (devin/1754533463-claude-security-review) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
- Resolves ghalint policy violation checkout_persist_credentials_should_be_false - Required by repository security policies Co-Authored-By: hirotaka.miyagi@route06.co.jp <h.miyagi.cnw@gmail.com>
- Rename .github/workflows/security.yml to .github/workflows/claude-security-review.yml - Requested by @MH4GF for better naming consistency Co-Authored-By: hirotaka.miyagi@route06.co.jp <h.miyagi.cnw@gmail.com>
|
It seems that the result is saved as an artifact. This is not so easy to see, but I would like to merge it once and see how it goes. https://github.com/liam-hq/liam/actions/runs/16793594492/job/47559740952 |
There was a problem hiding this comment.
Pull Request Overview
This PR adds automated AI-powered security review to pull requests using Anthropic's Claude Code Security Review GitHub Actions workflow. The workflow will analyze code changes for potential security vulnerabilities and provide feedback as PR comments.
Key changes:
- Added new GitHub Actions workflow for automated security review on pull requests
- Configured to use Claude API with proper authentication and exclusions
- Integrated with existing project infrastructure using the pnpm-setup action
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Issue
Request from @MH4GF to set up Claude Code Security Review GitHub Actions workflow based on the Quick Start guide from anthropics/claude-code-security-review.
Why is this change needed?
This adds automated AI-powered security review to pull requests using Anthropic's Claude Code Security Review action. The workflow will analyze code changes for potential security vulnerabilities and post findings as PR comments, helping catch security issues early in the development process.
What was changed?
.github/workflows/claude-security-review.ymlthat triggers on pull request eventsanthropics/claude-code-security-review@c19afa74097b892109a6598b94297280ce7d1bebinstead of@mainas requestedsecrets.ANTHROPIC_API_KEYfor Claude API access./.github/actions/pnpm-setupaction for consistencynode_modules,dist,build,.nextdirectories from security scanningpersist-credentials: falseto resolve ghalint policy violationsecurity.ymltoclaude-security-review.ymlfor better naming clarityKey configuration details
The workflow will:
Human Review Checklist
c19afa74097b892109a6598b94297280ce7d1bebis the latest commit from anthropics/claude-code-security-review and is secureANTHROPIC_API_KEYis properly configured in repository secrets with appropriate scopeNotes
The workflow follows the same patterns as the existing
claude.ymlworkflow for consistency with the project's CI/CD practices.