Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

Dispatch-workflow validation was gated behind the presence of agentic-workflows tool, allowing workflows with non-existent targets to compile successfully and fail at runtime.

Changes

  • Moved validation: validateDispatchWorkflow() now runs for all workflows with dispatch-workflow configuration, independent of agentic-workflows tool presence
  • Added test: TestDispatchWorkflowValidationWithoutAgenticWorkflowsTool verifies validation runs correctly

Impact

Previously silent at compile time:

safe-outputs:
  dispatch-workflow:
    workflows: [nonexistent]  # Compiled successfully

Now caught immediately:

error: dispatch-workflow validation failed: workflow 'nonexistent' not found in .github/workflows

Users with workflows compiled before this fix will need to recompile to get proper workflow_files mapping for runtime dispatch.

Original prompt

Fix issues when using safe outouts dispatch-workflow with workflows list:
Processing message 1/2: missing_tool
✓ Recorded missing tool: dispatch-workflow
Reason: The safeoutputs-dispatch-workflow tool is required to trigger workflows (add-name, add-emojis) but is not available in the current tool set. Cannot proceed with workflow dispatch as specified in instructions.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 31, 2026 10:27
…flows tool

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues with safe outputs in dispatch-workflow Fix dispatch-workflow validation to run unconditionally Jan 31, 2026
Copilot AI requested a review from mnkiefer January 31, 2026 10:37
@mnkiefer mnkiefer marked this pull request as ready for review January 31, 2026 10:39
@mnkiefer mnkiefer merged commit 866f4e9 into main Jan 31, 2026
148 checks passed
@mnkiefer mnkiefer deleted the copilot/fix-safeoutputs-dispatch-workflow branch January 31, 2026 10:43
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.

2 participants