From 27287b1e19606ae7b8c4e6c0b14ea07c29378064 Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Fri, 19 Jun 2026 19:24:22 +0700 Subject: [PATCH] Adapt goss run with codebuild configuration --- .github/workflows/push.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c1ede0e4..77ba45a2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -59,10 +59,18 @@ jobs: version: v0.3.16 - name: Execute Goss tests (wazuh-manager) - run: dgoss run wazuh/wazuh-manager:${{env.WAZUH_IMAGE_VERSION}} - env: - GOSS_SLEEP: 30 - GOSS_FILE: .github/.goss.yaml + run: | + # Start the Wazuh manager container + docker run -d --name wazuh_test wazuh/wazuh-manager:4.14.6 + # Wait for the container to be fully up and running + sleep 30 + # Copy the Goss binary to the container + docker exec wazuh_test mkdir -p /goss + docker cp /usr/local/bin/goss wazuh_test:/goss/goss + # Copy your test file (.goss.yaml) to the container + docker cp .github/.goss.yaml wazuh_test:/goss/goss.yaml + # Execute the validation inside the container + docker exec -w /goss wazuh_test ./goss validate check-single-node: runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}