-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add parallel workflow for code and security reviews #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Droid finished @shashank-factory's task —— View job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are directionally correct, but there are a few control-flow/output wiring issues in the new parallel workflow that can cause unnecessary security runs or prevent the tracking comment from being finalized when only one review executes.
394437b to
6d909b9
Compare
Implement parallel workflow architecture that runs code review and security review simultaneously, then combines results. New Composite Actions: - prepare/ - Initialize review, create tracking comment, detect modes - review/ - Standalone code review action - security/ - Standalone security review action - combine/ - Combine results and post inline comments New Features: - Parallel execution of code and security reviews - Combined summary with deduplication - Install security skills step in main action - PR branch checkout for full file access Workflow Changes: - .github/workflows/droid-review.yml now uses multi-job parallel workflow - @droid review security triggers both reviews - run_code_review and run_security_review output flags Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Restrict parallel review execution to automatic mode only (via automaticReview + automaticSecurityReview flags). For manual tagging, users must explicitly choose ONE of: - @droid review - Code review only - @droid security - Security review only @droid review security now parses as just @droid review. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Fix combine job to run when EITHER review ran (not both) - Set run_security_review=false when skipping existing security review - Validate DROID_COMMENT_ID is non-zero in generate-review-prompt Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
4c7a37b to
22898eb
Compare
varin-nair-factory
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, just see comments. Did you test this? Does it work?
- Merge dev branch into parallel workflow branch - Remove redundant appendFileSync for github_token output - core.setOutput() already handles GITHUB_OUTPUT internally Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
|
Droid encountered an error —— View job |
Summary
Closes https://linear.app/factoryai/issue/FAC-14927/update-readme-with-new-structure-around-the-security-workflow
Closes https://linear.app/factoryai/issue/FAC-14354/add-action-inputs-for-security-review-configuration
Implement parallel workflow architecture that runs code review and security review simultaneously, then combines results.
New Composite Actions
prepare/- Initialize review, create tracking comment, detect modesreview/- Standalone code review actionsecurity/- Standalone security review actioncombine/- Combine results and post inline commentsNew Features
Workflow Changes
.github/workflows/droid-review.ymlnow uses multi-job parallel workflow@droid review securitytriggers both reviewsrun_code_reviewandrun_security_reviewoutput flagsNew Entrypoints
src/entrypoints/get-token.ts- OIDC token helpersrc/entrypoints/generate-review-prompt.ts- Prompt generationsrc/entrypoints/generate-combine-prompt.ts- Combine promptsrc/entrypoints/combine-reviews.ts- Combine logicThis is the final PR in the split from the security review feature branch.
PR Stack