Add daily Windows Defender release scan - #57768
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
marked this pull request as ready for review
September 1, 2026 19:57
Copilot created this pull request from a session on behalf of
pelikhan
September 1, 2026 19:57
View session
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Missing-asset and quarantine paths can bypass reporting, while the schema update weakens event validation.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a daily agentic workflow to scan Windows release assets with Microsoft Defender and propose draft remediation PRs.
Changes:
- Scans release executables and uploads findings.
- Runs Codex only when findings exist.
- Adds generated workflow output and schema updates.
File summaries
| File | Description |
|---|---|
.github/workflows/daily-windows-defender-scan.md |
Defines scanning and remediation behavior. |
.github/workflows/daily-windows-defender-scan.lock.yml |
Compiled workflow output. |
pkg/workflow/schemas/github-workflow.json |
Updates workflow schema validation. |
Review details
- Files reviewed: 2/3 changed files
- Comments generated: 3
- Review effort level: Balanced
Comment on lines
+75
to
+76
| if (-not (Test-Path -LiteralPath (Join-Path $releaseDir $assetName) -PathType Leaf)) { | ||
| throw "Downloaded release asset was not found: $assetName" |
Comment on lines
+1224
to
+1226
| "$ref": "#/definitions/eventObject", | ||
| "description": "Runs your workflow anytime the branch_protection_rule event occurs. More than one activity type triggers this event.", | ||
| "properties": { | ||
| "types": { | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/types" | ||
| "oneOf": [ |
Comment on lines
+62
to
+64
| if ($assetNames.Count -eq 0) { | ||
| throw "Latest release $releaseTag has no Windows executable assets" | ||
| } |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
Adds a daily workflow that scans the latest Windows release assets with Microsoft Defender. Findings are packaged for Codex analysis, which may propose a draft fix PR.
Changes
Defender scan
windows-amd64.exeandwindows-arm64.exefrom the latest release.Agent remediation
gpt-5.6-sol.Safety