Skip to content

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

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

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

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

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 CLI
  env:
    CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}

# After (Copilot)  
- Install GitHub Copilot CLI
  env:
    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.

Copilot AI and 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>
Copilot AI changed the title [WIP] Migrate agentic workflow to Copilot and debug safe-outputs issue Migrate security-fix-pr workflow from Claude to Copilot engine Jan 15, 2026
Copilot AI requested a review from pelikhan January 15, 2026 06:34
@pelikhan pelikhan marked this pull request as ready for review January 15, 2026 06:49
@pelikhan
Copy link
Contributor

@copilot merge main

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

Copilot AI commented Jan 15, 2026

@copilot merge main

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

Copilot AI requested a review from pelikhan January 15, 2026 06:57
@pelikhan pelikhan merged commit d35a057 into main Jan 15, 2026
@pelikhan pelikhan deleted the copilot/migrate-agentic-workflow branch January 15, 2026 07:09
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