From b10a00cade465f566e24e46a234bd8a71f5dede9 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Thu, 26 May 2022 13:03:41 -0300 Subject: [PATCH] test CI --- .github/workflows/push.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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