forked from wazuh/wazuh-docker
test CI
This commit is contained in:
@@ -10,8 +10,8 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build the docker-compose stack
|
## - name: Build Wazuh images
|
||||||
run: ./build.sh
|
## run: ./build.sh
|
||||||
|
|
||||||
- name: Create enviroment variables
|
- name: Create enviroment variables
|
||||||
run: cat .env > $GITHUB_ENV
|
run: cat .env > $GITHUB_ENV
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Wazuh manager start
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
curl -k -X GET "https://0.0.0.0:55000/cluster/status" -H "Authorization: Bearer ${{env.TOKEN}}"
|
curl -k -X GET "https://0.0.0.0:55000/cluster/info" -H "Authorization: Bearer ${{env.TOKEN}}"
|
||||||
env:
|
env:
|
||||||
TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Wazuh manager start
|
- name: Check Wazuh manager start
|
||||||
run: |
|
run: |
|
||||||
curl -k -X GET "https://0.0.0.0:55000/cluster/status" -H "Authorization: Bearer ${{env.TOKEN}}"
|
curl -k -X GET "https://0.0.0.0:55000/cluster/info" -H "Authorization: Bearer ${{env.TOKEN}}"
|
||||||
env:
|
env:
|
||||||
TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
TOKEN: $(curl -u wazuh-wui:MyS3cr37P450r.*- -k -X GET "https://0.0.0.0:55000/security/user/authenticate?raw=true")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user