Skip to content

Migrate security-fix-pr workflow from Claude to Copilot engine - #10033

Merged
pelikhan merged 5 commits into
mainfrom
copilot/migrate-agentic-workflow
Jan 15, 2026
Merged

Migrate security-fix-pr workflow from Claude to Copilot engine#10033
pelikhan merged 5 commits into
mainfrom
copilot/migrate-agentic-workflow

Conversation

CopilotAI commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Workflow run #21019704279 failed because Claude's MCP integration couldn't call list_code_scanning_alerts - the tool consistently returned "missing required parameter" errors, preventing the agent from creating autofixes via safe-outputs.

Changes

Engine Migration

  • Changed engine: claudeengine: copilot in .github/workflows/security-fix-pr.md
  • Recompiled workflow to generate Copilot-compatible lock file
  • Merged latest changes from main branch
  • Rebuilt binary and recompiled workflow with updated compiler improvements

Root Cause

Log analysis showed:

  1. Agent called mcp__github__list_code_scanning_alerts
  2. MCP returned parameter validation errors
  3. Agent fell back to bash gh CLI (unavailable in container)
  4. Agent called mcp__safeoutputs__missing_tool and exited
  5. Never reached autofix_code_scanning_alert safe-output

Copilot's GitHub MCP integration handles the code scanning API correctly.

Lock File Changes

# Before (Claude)
- Install Claude Code CLIenv:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}# After (Copilot) 
- Install GitHub Copilot CLIenv:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}

Safe-outputs configuration unchanged - autofix_code_scanning_alert tool definition remains identical.

Updates

The PR now includes all latest changes from the main branch, ensuring compatibility with recent compiler improvements and MCP gateway enhancements.


Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/21019704279/job/60432020743

Migrate this agentic workflow to copilot and debug why it failed to create safe-outputs

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


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

CopilotAIand others added 2 commits January 15, 2026 06:25
…Copilot
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Migrate agentic workflow to Copilot and debug safe-outputs issueMigrate security-fix-pr workflow from Claude to Copilot engineJan 15, 2026
CopilotAI requested a review from pelikhanJanuary 15, 2026 06:34
@pelikhan
pelikhan marked this pull request as ready for review January 15, 2026 06:49
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot merge main

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

CopilotAI commented Jan 15, 2026

Copy link
Copy Markdown
ContributorAuthor

@copilot merge main

Merged main branch successfully. Resolved merge conflicts in lock file and recompiled workflow with latest compiler improvements. Changes committed in d451c77.

CopilotAI requested a review from pelikhanJanuary 15, 2026 06:57
@pelikhan
pelikhan merged commit d35a057 into mainJan 15, 2026
@pelikhan
pelikhan deleted the copilot/migrate-agentic-workflow branch January 15, 2026 07:09
Sign up for freeto 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

@pelikhan