Skip to content

Commit 97b006c

Browse files
authored
chore: Added a simulated busy system
Also changed the numbers to allow up to about 5% of more events
1 parent fdb5396 commit 97b006c

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
# main branch
66
push:
77
branches:
8-
- master
8+
- main
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212
workflow_dispatch:
1313

1414
jobs:
@@ -27,5 +27,22 @@ jobs:
2727
shell: powershell
2828

2929
- name: Check Eventcount
30-
run: '$EventCount = 0 ;Get-WinEvent -ListLog * | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 56000){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
30+
run: '$EventCount = 0 ;Get-WinEvent -ListLog * | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 52500){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
31+
shell: powershell
32+
33+
busySystem:
34+
runs-on: 'windows-latest'
35+
steps:
36+
- name: Checkout open-sysmon-conf
37+
uses: actions/checkout@v2
38+
39+
- name: Download Sysmon
40+
run: Invoke-WebRequest http://live.sysinternals.com/tools/sysmon.exe -OutFile .\sysmon.exe
41+
shell: powershell
42+
43+
- name: Install some Choco Packages
44+
run: choco install ninja adobereader googlechrome firefox jre8 notepadplusplus.install vlc python3 dotnetfx openssh winrar nodejs.install foxitreader autohotkey.portable putty.install skype ccleaner winlogbeat gimp
45+
46+
- name: Check Eventcount Post Choco
47+
run: '$EventCount = 0 ;Get-WinEvent -ListLog * | where {$_.RecordCount -gt 0} | foreach{$_;$EventCount = $EventCount + $_.RecordCount}|Out-Null;"Eventcount: "+$EventCount; if ($EventCount -gt 54000){ Write-Output "Too many events"; $host.SetShouldExit(1)}'
3148
shell: powershell

0 commit comments

Comments
 (0)