Improve bug bounty agent with triage and review steps#2933
Merged
Conversation
Add bug verification step (Step 3) that confirms issues are real bugs before attempting fixes, labeling unverified issues as "Needs triage". Skip issues already labeled "Needs triage" and require "Bug" or "[Type] Bug" labels. Replace self-review with code-review agent, simplify PR detection to search by issue number, and add 30-minute timeout to CI polling.
There was a problem hiding this comment.
Pull request overview
This PR enhances the bug bounty agent workflow with better issue triage, more reliable PR detection, and improved quality checks. The changes add a verification step to confirm issues are actual bugs before attempting fixes, integrate the dedicated code-review agent for pre-PR review, and add safeguards like CI timeout to prevent infinite loops.
Changes:
- Add Step 3 bug verification that confirms issues are real bugs before fixing; unverified issues get labeled "Needs triage" with an explanatory comment
- Filter issue selection to only "Bug" or "[Type] Bug" labels and skip "Needs triage" issues
- Replace PR detection with simpler
gh pr list --search "#<number>"command instead of unreliabletimelineItemsfield - Replace self-review step with dedicated code-review agent invocation for more thorough pre-PR review
- Add 30-minute timeout (60 attempts at 30 seconds each) to CI polling to prevent infinite loops
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
timelineItemsJSON field.Test plan