Skip to content

Update code-scanning-fixer workflow to include critical severity alerts#11377

Merged
eaftan merged 2 commits intomainfrom
copilot/update-code-scanning-fixer-workflow
Jan 22, 2026
Merged

Update code-scanning-fixer workflow to include critical severity alerts#11377
eaftan merged 2 commits intomainfrom
copilot/update-code-scanning-fixer-workflow

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

Extends the code-scanning-fixer workflow to also detect and fix critical severity alerts, not just high severity.

Changes

  • Alert querying: Now makes two API calls (severity: "critical" then severity: "high") and combines results, prioritizing critical alerts
  • Workflow prompts: Updated agent instructions, mission goals, and error messages to reference both severity levels
  • PR template: Changed hardcoded High severity to [Critical/High] placeholder

Example: Updated Step 2

### 2. List Critical and High Severity Alerts

- First, call `github-list_code_scanning_alerts` with `severity`: "critical"
- Then, call `github-list_code_scanning_alerts` with `severity`: "high"
- Combine results, prioritizing critical alerts over high severity alerts
Original prompt

On code-scanning-fixer.md, Update the code-scanning-fixer.md workflow to also look for critical alerts (in addition to high)

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.

…ts (in addition to high)

Co-authored-by: eaftan <4733401+eaftan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update code-scanning-fixer workflow to check critical alerts Update code-scanning-fixer workflow to include critical severity alerts Jan 22, 2026
Copilot AI requested a review from eaftan January 22, 2026 18:59
@eaftan eaftan marked this pull request as ready for review January 22, 2026 19:07
@eaftan eaftan merged commit e20ea8c into main Jan 22, 2026
117 checks passed
@eaftan eaftan deleted the copilot/update-code-scanning-fixer-workflow branch January 22, 2026 19:12
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