Skip to content

Commit 61cc54f

Browse files
committed
Revert "Bug fix"
This reverts commit 02a236b.
1 parent 02a236b commit 61cc54f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

.github/workflows/aquasec_repo_scan.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,8 @@ jobs:
8181
exit 1
8282
fi
8383
84-
# Check if response is valid JSON
85-
if ! echo "$PAGE_RESPONSE" | jq empty 2>/dev/null; then
86-
echo "Invalid JSON response from API:"
87-
echo "$PAGE_RESPONSE"
88-
exit 1
89-
fi
90-
9184
if [ $PAGE_NUM -eq 1 ]; then
9285
TOTAL_EXPECTED=$(echo "$PAGE_RESPONSE" | jq -r '.total // 0')
93-
if ! [[ "$TOTAL_EXPECTED" =~ ^[0-9]+$ ]]; then
94-
echo "Error: Invalid total value from API: $TOTAL_EXPECTED"
95-
exit 1
96-
fi
9786
echo "Total findings expected: $TOTAL_EXPECTED"
9887
fi
9988

0 commit comments

Comments
 (0)