Skip to content

Commit

Permalink
changing where object
Browse files Browse the repository at this point in the history
  • Loading branch information
aishwaryabh committed Jan 2, 2025
1 parent ef077ff commit 38f4c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-vulnerabilities.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $logContent = Get-Content $logFilePath

# Extract vulnerabilities excluding DotNetZip
$vulnerabilities = $logContent | Where-Object {
$_ -match "High|Critical|Moderate|Low" -and $_ -notmatch "DotNetZip"
($_ -match "^\s*>") -and ($_ -notmatch "DotNetZip")
}

$result = Get-content $logFilePath | select-string "has no vulnerable packages given the current sources"
Expand Down

0 comments on commit 38f4c61

Please sign in to comment.