Skip to content

Add daily Windows Defender release scan - #57768

Merged
pelikhan merged 3 commits into
mainfrom
copilot/create-agentic-workflow
Sep 1, 2026
Merged

Add daily Windows Defender release scan#57768
pelikhan merged 3 commits into
mainfrom
copilot/create-agentic-workflow

Conversation

Copilot AI commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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

    • Downloads windows-amd64.exe and windows-arm64.exe from the latest release.
    • Updates Defender signatures and records scan output, hashes, and diagnostics.
    • Uploads a structured report artifact only when findings occur.
  • Agent remediation

    • Runs Codex through Copilot using gpt-5.6-sol.
    • Gates agent execution on Defender findings.
    • Creates a scoped draft PR for evidence-backed fixes; otherwise reports a no-op.
  • Safety

    • Prevents weakening, excluding, suppressing, or evading Defender checks.
    • Restricts agent-authored changes to relevant source, build, and changeset files.

Copilot AI and others added 2 commits September 1, 2026 19:45
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
pelikhan marked this pull request as ready for review September 1, 2026 19:57
Copilot AI balanced review requested due to automatic review settings September 1, 2026 19:57
Copilot AI requested a review from pelikhan September 1, 2026 19:57
@pelikhan
pelikhan merged commit c905064 into main Sep 1, 2026
21 checks passed
@pelikhan
pelikhan deleted the copilot/create-agentic-workflow branch September 1, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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"
}
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.88.0

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.

3 participants