From 6db386e0297cbe107bccfdc07da598572fc3283e Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Wed, 20 Nov 2024 14:28:23 +0000 Subject: [PATCH] test(COD-4237): only check if the list of expected is not 0 --- .github/workflows/integration-test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index a7d359a1..e3cd2abf 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -60,9 +60,8 @@ jobs: working-directory: artifact run: | export SCA_RESULTS=`jq '.runs | map (.results | length) | add' sca.sarif` - expectedScaResults=5 echo "Got $SCA_RESULTS from SCA" - if [ "$SCA_RESULTS" != "$expectedScaResults" ]; then + if [ "$SCA_RESULTS" -eq 0 ]; then echo "::error::Expected to have $expectedScaResults SCA results!" exit 1 fi