diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 582a746d..466e7d78 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -39,4 +39,9 @@ jobs: time: '60s' - name: Check Wazuh indexer start - run: curl -XGET https://0.0.0.0:9200/_cluster/health -u admin:SecretPassword -k \ No newline at end of file + run: curl -XGET https://0.0.0.0:9200/_cluster/health -u admin:SecretPassword -k + + - name: Check Wazuh indexer start + run: | + TOKEN=$(curl -u $API_USER:$API_PASSWORD -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true") + curl -k -X GET "https://0.0.0.0:55000/agents/outdated?pretty=true" -H "Authorization: Bearer $TOKEN" \ No newline at end of file