-
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
60ab9a7
feat: add parallel workflow for code and security reviews
shashank-factory 109bc81
fix: remove @droid review security combined command
shashank-factory 22898eb
fix: address P1 issues from code review
shashank-factory a8e2056
Merge origin/dev and remove redundant token output
shashank-factory File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| name: "Droid Combine Results" | ||
| description: "Combine code review and security review results, post inline comments, update summary" | ||
|
|
||
| inputs: | ||
| factory_api_key: | ||
| description: "Factory API key" | ||
| required: true | ||
| tracking_comment_id: | ||
| description: "ID of the tracking comment to update" | ||
| required: true | ||
| code_review_results: | ||
| description: "Path to code review results JSON (optional)" | ||
| required: false | ||
| default: "" | ||
| security_results: | ||
| description: "Path to security results JSON (optional)" | ||
| required: false | ||
| default: "" | ||
| code_review_status: | ||
| description: "Code review job status (success/failure/skipped)" | ||
| required: false | ||
| default: "skipped" | ||
| security_review_status: | ||
| description: "Security review job status (success/failure/skipped)" | ||
| required: false | ||
| default: "skipped" | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Install Bun | ||
| uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 | ||
| with: | ||
| bun-version: 1.2.11 | ||
|
|
||
| - name: Install Dependencies | ||
| shell: bash | ||
| run: | | ||
| cd ${{ github.action_path }}/.. | ||
| bun install | ||
| cd ${{ github.action_path }}/../base-action | ||
| bun install | ||
|
|
||
| - name: Install Droid CLI | ||
| shell: bash | ||
| run: | | ||
| curl --retry 5 --retry-delay 2 --retry-all-errors -fsSL https://app.factory.ai/cli | sh | ||
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | ||
| "$HOME/.local/bin/droid" --version | ||
|
|
||
| - name: Get GitHub Token | ||
| id: token | ||
| shell: bash | ||
| run: | | ||
| bun run ${{ github.action_path }}/../src/entrypoints/get-token.ts | ||
| env: | ||
| FACTORY_API_KEY: ${{ inputs.factory_api_key }} | ||
|
|
||
| - name: Generate Combine Prompt | ||
| id: prompt | ||
| shell: bash | ||
| run: | | ||
| bun run ${{ github.action_path }}/../src/entrypoints/generate-combine-prompt.ts | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.token.outputs.github_token }} | ||
| DROID_COMMENT_ID: ${{ inputs.tracking_comment_id }} | ||
| CODE_REVIEW_RESULTS: ${{ inputs.code_review_results }} | ||
| SECURITY_RESULTS: ${{ inputs.security_results }} | ||
| CODE_REVIEW_STATUS: ${{ inputs.code_review_status }} | ||
| SECURITY_REVIEW_STATUS: ${{ inputs.security_review_status }} | ||
|
|
||
| - name: Run Combine | ||
| shell: bash | ||
| run: | | ||
| bun run ${{ github.action_path }}/../base-action/src/index.ts | ||
| env: | ||
| INPUT_PROMPT_FILE: ${{ runner.temp }}/droid-prompts/droid-prompt.txt | ||
| INPUT_DROID_ARGS: ${{ steps.prompt.outputs.droid_args }} | ||
| INPUT_MCP_TOOLS: ${{ steps.prompt.outputs.mcp_tools }} | ||
| FACTORY_API_KEY: ${{ inputs.factory_api_key }} | ||
| GITHUB_TOKEN: ${{ steps.token.outputs.github_token }} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.