Fix agent skipping assign-to-agent call in security-alert-burndown workflow #12358
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.
Problem
In run 21454338976, the agent created parent issue #12356 but never called
assign_to_agent. The conditional stepcontains(needs.agent.outputs.output_types, 'assign_to_agent')skipped because the agent didn't emit that output type.Root cause: Workflow instructions had three required actions scattered across 100 lines with a 50-line issue template interrupting the sequence:
Changes
Restructured Step 4 to make the three-action sequence explicit and uninterruptible:
**CRITICAL**: You must call all three tools (create_issue, update_project, assign_to_agent) in sequenceThe workflow structure remains unchanged—only the embedded prompt text was updated. The conditional logic
contains(needs.agent.outputs.output_types, 'assign_to_agent')is correct; the issue was agent behavior, not the conditional.File changes
.github/workflows/security-alert-burndown.md- Restructured Step 4 instructions (+8 lines, -14 lines).github/workflows/security-alert-burndown.lock.yml- Recompiled with updated embedded promptOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.