feat: security review github action #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Introduces a new security-focused code review capability to the Droid GitHub Action. This feature enables automated security analysis of pull request changes, identifying high-severity vulnerabilities and leaving inline comments directly on the diff.
Changes
New Features
automatic_security_reviewinput: New action input to automatically run security review for pull request contexts without requiring an explicit command@droid security-reviewcommand: New command that users can invoke to trigger a security-focused reviewsrc/create-prompt/templates/security-review-prompt.ts) that guides Droid to focus on security issues including:Implementation
src/tag/commands/security-review.ts: New command handler for security review mode with appropriate MCP tool configurationsrc/github/utils/command-parser.ts: Extended to recognizesecurity-reviewas a valid commandsrc/github/context.ts: AddedautomaticSecurityReviewflag to context inputssrc/github/validation/trigger.ts: Updated trigger detection to includesecurity-reviewcommandaction.yml: Addedautomatic_security_reviewinput with environment variable passthroughCode Quality
Testing
test/create-prompt/templates/security-review-prompt.test.ts: Tests for prompt generationtest/modes/tag/security-review-command.test.ts: Tests for command handlingautomaticSecurityReviewcontext fieldautomatic_reviewBreaking Changes
None. This is an additive feature that does not affect existing
fillorreviewfunctionality.Related Issues
[To be filled by author]