diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4a3f0c00..a4ac155f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -41,7 +41,7 @@ jobs: - name: Check Wazuh indexer start run: | curl -XGET "https://0.0.0.0:9200/_cluster/health?wait_for_status=green&timeout=120s" -u admin:SecretPassword -k - curl -XGET "https://0.0.0.0:9200/_cluster/nodes" -u admin:SecretPassword -k + curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k - name: Check Wazuh manager start run: | @@ -51,6 +51,15 @@ jobs: - name: Stop single node stack run: docker-compose -f single-node/docker-compose.yml down + - name: Check Wazuh dashboard service URL + uses: jtalk/url-health-check-action@v2 + with: + url: https://0.0.0.0:443 + follow-redirect: true + max-attempts: 3 + retry-delay: 10s + retry-all: false + - name: Create multi node certficates run: docker-compose -f multi-node/generate-indexer-certs.yml run --rm generator @@ -65,9 +74,18 @@ jobs: - name: Check Wazuh indexer start run: | curl -XGET "https://0.0.0.0:9200/_cluster/health?wait_for_status=green&timeout=120s" -u admin:SecretPassword -k - curl -XGET "https://0.0.0.0:9200/_cluster/nodes" -u admin:SecretPassword -k + curl -XGET "https://0.0.0.0:9200/_cat/nodes?v" -u admin:SecretPassword -k - name: Check Wazuh manager start run: | TOKEN=$(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true") curl -k -X GET "https://0.0.0.0:55000" -H "Authorization: Bearer $TOKEN" + + - name: Check Wazuh dashboard service URL + uses: jtalk/url-health-check-action@v2 + with: + url: https://0.0.0.0:443 + follow-redirect: true + max-attempts: 3 + retry-delay: 10s + retry-all: false