We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d9eaf3 commit e8f2084Copy full SHA for e8f2084
1 file changed
.github/workflows/windows-defender-scan.yml
@@ -85,6 +85,14 @@ jobs:
85
cmd /c type scan\eicar.txt >NUL
86
Start-Sleep -Seconds 3 # give logs a moment
87
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
+
96
# assert detection, but do NOT fail here; report via step output
97
- name: Collect detections and set outputs
98
id: detect
0 commit comments