Add agentic workflow to auto-fix high severity code scanning alerts every 30 minutes#10005
Merged
Add agentic workflow to auto-fix high severity code scanning alerts every 30 minutes#10005
Conversation
Co-authored-by: eaftan <4733401+eaftan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix high severity code scanning alerts
Add weekly agentic workflow to auto-fix high severity code scanning alerts
Jan 14, 2026
Contributor
|
@copilot format, lint |
1 similar comment
Contributor
|
@copilot format, lint |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Contributor
|
@copilot run every 30 minutes, skip if another a PR created by the workflow is still opened |
Contributor
Author
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Done in commit 4f8412b. Changed schedule from weekly to |
Copilot
AI
changed the title
Add weekly agentic workflow to auto-fix high severity code scanning alerts
Add agentic workflow to auto-fix high severity code scanning alerts every 30 minutes
Jan 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
code-scanning-fixer.md✅ All Requirements Met
1. Fix Code Scanning Alerts
Implementation: Uses GitHub code scanning API (
list_code_scanning_alertsandget_code_scanning_alert) to discover and analyze security vulnerabilities2. High Severity Only
Implementation: Filters alerts with
severity: highexclusively. The prompt explicitly states "Filter the results to only include alerts withseverity: high"3. Every 30 Minutes Schedule
Implementation: Runs every 30 minutes via
schedule: every 30m(compiled to cron:*/30 * * * *)4. Track Old Findings (No Duplicates)
Implementation: Uses cache-memory at
/tmp/gh-aw/cache-memory/fixed-alerts.jsonlto store:{"alert_number": 123, "fixed_at": "2024-01-15T10:30:00Z", "pr_number": 456}5. Skip if Open PR Exists
Implementation: Uses
skip-if-match: 'is:pr is:open in:title "[code-scanning-fix]"'🔒 Security Features
📦 Files Created
.github/workflows/code-scanning-fixer.md(6.7 KB) - Workflow definition.github/workflows/code-scanning-fixer.lock.yml(66 KB) - Compiled GitHub Actions workflow🚀 How It Works
✅ Format & Lint
make fmt- Formatting completemake lint- All validations passed💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.