Skip to content

Commit 2b0f7d7

Browse files
tetragon/windows: Fix CI tests when UID is reported
This commit fixes the CI tests to look for non zero uid in event json for exec events. Signed-off-by: Anadi Anadi<[email protected]>
1 parent 8f07c7f commit 2b0f7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/windows-build-smoke-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ jobs:
237237
$notepadPID = $notepad.Id
238238
Write-Host "Process launched with PID: $notepadPID"
239239
240-
$searchString = "\{\""process_exec\""\:\{\""process\""\:\{\""exec_id\""\:\"".{16,30}\""\,.{0,1}\""pid\""\:$notepadPID\,.{0,1}\""uid\""\:0\,.{0,1}\""binary\""\:\""C:\\\\Windows\\\\system32\\\\notepad.exe\"""
240+
$searchString = "\{\""process_exec\""\:\{\""process\""\:\{\""exec_id\""\:\"".{16,30}\""\,.{0,1}\""pid\""\:$notepadPID\,.{0,1}\""uid\""\:[0-9]{0,9}\,.{0,1}\""binary\""\:\""C:\\\\Windows\\\\system32\\\\notepad.exe\"""
241241
242242
Write-Host "Looking for regex: $searchString"
243243
# Load the JSON content

0 commit comments

Comments
 (0)