From c4dc5a8416522e4bb47a35cffb8fac8e8614151b Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Wed, 1 Jul 2026 01:02:24 +0700 Subject: [PATCH] Add timeout control --- .github/workflows/push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 0f043b1a..e91d2a08 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -92,7 +92,7 @@ jobs: - name: Check Wazuh indexer start run: | - timeout 600 bash -c 'until curl -XGET "https://localhost:9200/_cluster/health" -u admin:SecretPassword -k -s > /dev/null; do sleep 5; done' + timeout 600 bash -c 'until curl -XGET "https://localhost:9200/_cluster/health" -u admin:SecretPassword -k -s | grep -q "green"; do sleep 5; done' if [ $? -ne 0 ]; then docker ps -a exit 1 @@ -235,7 +235,7 @@ jobs: - name: Check Wazuh indexer start run: | - timeout 600 bash -c 'until curl -XGET "https://localhost:9200/_cluster/health" -u admin:SecretPassword -k -s > /dev/null; do sleep 5; done' + timeout 600 bash -c 'until curl -XGET "https://localhost:9200/_cluster/health" -u admin:SecretPassword -k -s | grep -q "green"; do sleep 5; done' if [ $? -ne 0 ]; then docker ps -a exit 1