Skip to content

Commit e8f2084

Browse files
committed
Add on-demand Defender scan for EICAR verification
1 parent 3d9eaf3 commit e8f2084

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/windows-defender-scan.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ jobs:
8585
cmd /c type scan\eicar.txt >NUL
8686
Start-Sleep -Seconds 3 # give logs a moment
8787
88+
- name: On-demand scan EICAR file
89+
shell: pwsh
90+
run: |
91+
$scan = (Resolve-Path 'scan').Path
92+
$target = Join-Path $scan 'eicar.txt'
93+
& "$env:MPCMDRUN" -Scan -ScanType 3 -File $target
94+
Start-Sleep -Seconds 3 # allow detection telemetry to flush
95+
8896
# assert detection, but do NOT fail here; report via step output
8997
- name: Collect detections and set outputs
9098
id: detect

0 commit comments

Comments
 (0)