From 19b8557e80caeced8fd90359d211722f41618715 Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 6 Jun 2024 00:43:43 +0200 Subject: [PATCH] CI: Ignore PVS-Studio's license close to expiry error code --- .github/actions/windows-analysis/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/windows-analysis/action.yaml b/.github/actions/windows-analysis/action.yaml index 1ac0ea8bc..112f43158 100644 --- a/.github/actions/windows-analysis/action.yaml +++ b/.github/actions/windows-analysis/action.yaml @@ -55,8 +55,8 @@ runs: ) & "C:\Program Files (x86)\PVS-Studio\PVS-Studio_Cmd.exe" @pvsParams - # Success and CodeErrorsFound are fine as error codes, we only care if it is anything but those - $pvs_result = $LASTEXITCODE -band (-bnot [PVSErrorCodes]::CodeErrorsFound) + # Success, LicenseExpiringSoon, and CodeErrorsFound are fine as error codes, we only care if it is anything but those + $pvs_result = $LASTEXITCODE -band (-bnot ([PVSErrorCodes]::CodeErrorsFound -bor [PVSErrorCodes]::LicenseExpiringSoon)) if ($pvs_result -ne 0) { Write-Output "PVS-Studio Errors: $([PVSErrorCodes]$pvs_result)" }