Skip to content

Conversation

@shashank-factory
Copy link
Contributor

@shashank-factory shashank-factory commented Jan 13, 2026

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 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

New Entrypoints

  • src/entrypoints/get-token.ts - OIDC token helper
  • src/entrypoints/generate-review-prompt.ts - Prompt generation
  • src/entrypoints/generate-combine-prompt.ts - Combine prompt
  • src/entrypoints/combine-reviews.ts - Combine logic

This is the final PR in the split from the security review feature branch.

PR Stack

  1. Formatting cleanup (chore: code formatting and style cleanup #16)
  2. Security commands foundation (feat: add @droid security commands #17)
  3. Review prompt JSON output pattern (feat: change review output to JSON format #18)
  4. This PR - Parallel workflow architecture

@factory-droid
Copy link
Contributor

factory-droid bot commented Jan 13, 2026

Droid finished @shashank-factory's task —— View job


Copy link
Contributor

@factory-droid factory-droid bot left a 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.

shashank-factory and others added 3 commits January 13, 2026 14:02
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>
@shashank-factory shashank-factory force-pushed the ssharma/pr4-parallel-workflow branch from 4c7a37b to 22898eb Compare January 13, 2026 22:03
Copy link
Collaborator

@varin-nair-factory varin-nair-factory left a 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?

Base automatically changed from ssharma/pr3-review-json-output to dev January 20, 2026 18:39
- 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>
@shashank-factory shashank-factory merged commit 46eabed into dev Jan 20, 2026
@shashank-factory shashank-factory deleted the ssharma/pr4-parallel-workflow branch January 20, 2026 18:53
@factory-droid
Copy link
Contributor

factory-droid bot commented Jan 20, 2026

Droid encountered an error —— View job


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants